Edit the plugin
-
HI,
I tried to edit the plugin to hide some plugins from the menu i edited this part:function admin_menu() {
if ( current_user_can( ‘webmaster’ ) ) {
remove_menu_page( ‘options-general.php’ );
remove_menu_page( ‘branding’ );
remove_menu_page( ‘sucuriscan’ );
remove_menu_page( ‘tools.php’ );
remove_menu_page( ‘edit.php?post_type=acf’ );}
I added another string like remove_menu_page( ‘edit.php?post_type=acf’ ); changing edit.php?post_type=acf with the lugin page but it doesn’t work, i don’t understand why ?? I’m working on a local server
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Edit the plugin’ is closed to new replies.