Fliter: AA_user_level_for_editor

This filter allows you override you can see the Button in TinyMCE

in this example it is set to ‘edit_theme_options’ which is an admin level capability

add_filter( 'AA_user_level_for_editor', function( $user_level ){ return 'edit_theme_options'; } );

this will remove the the button for all

add_filter( 'AA_user_level_for_editor', function( $user_level ){ return 'false'; } );

Here is the list of Capabilities that you can return to set the access level



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: