Support » Plugin: Webmaster User Role » Edit the plugin

  • Resolved raizen84


    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)
  • Plugin Author TylerDigital


    What did you replace the ACF line with? What menu item are you trying to hide?

    Of course you may ultimately want to put this function in your functions.php so that the work isn’t undone when an update for webmaster user role comes out!

    Plugin Author TylerDigital


    I’m marking this item as resolved, please reopen if you have further questions!

    Hi I am interested in blocking all plugins except one. I use Ninja Forms for my site, but I want the same features you would have with Gravity Forms and allow non-ADMIN users to view the submissions. Is there some manual on how to remove some plugins and keep others?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit the plugin’ is closed to new replies.