• Resolved raizen84

    (@raizen84)


    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

    http://wordpress.org/plugins/webmaster-user-role/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TylerDigital

    (@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

    (@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.