Home / Admin / Disable the AIOSEO Flyout Menu for Non-Administrator Users.
Duplicate Snippet

Embed Snippet on Your Site

Disable the AIOSEO Flyout Menu for Non-Administrator Users.

This snippet can be used to disable the AIOSEO flyout menu for non-administrator users.

<10
Code Preview
php
<?php
add_filter( 'aioseo_flyout_menu_enable', 'aioseo_filter_flyout_menu_enable' );
function aioseo_filter_flyout_menu_enable( $enabled ) {
	if ( ! aioseo()->access->isAdmin() ) {
		$enabled = false;
	}
	return $enabled;
}

Comments

Add a Comment