Remove the flyout menu for all non-admin users in All in One SEO

Remove the flyout menu for all non-admin users in All in One SEO on child sites.

Snippet Type

Execute on Child Sites

Snippet

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;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.