Title: Edit the plugin
Last modified: August 21, 2016

---

# Edit the plugin

 *  Resolved [raizen84](https://wordpress.org/support/users/raizen84/)
 * (@raizen84)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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
 * [http://wordpress.org/plugins/webmaster-user-role/](http://wordpress.org/plugins/webmaster-user-role/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [TylerDigital](https://wordpress.org/support/users/tylerdigital/)
 * (@tylerdigital)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/edit-the-plugin/#post-4237577)
 * 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](https://wordpress.org/support/users/tylerdigital/)
 * (@tylerdigital)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/edit-the-plugin/#post-4237800)
 * I’m marking this item as resolved, please reopen if you have further questions!
 *  [LarryPatrick](https://wordpress.org/support/users/larrypatrick/)
 * (@larrypatrick)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/edit-the-plugin/#post-4237845)
 * 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.

 * ![](https://ps.w.org/webmaster-user-role/assets/icon-256x256.png?rev=3201863)
 * [Simple Client Dashboard](https://wordpress.org/plugins/webmaster-user-role/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webmaster-user-role/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webmaster-user-role/)
 * [Active Topics](https://wordpress.org/support/plugin/webmaster-user-role/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webmaster-user-role/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webmaster-user-role/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [LarryPatrick](https://wordpress.org/support/users/larrypatrick/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/edit-the-plugin/#post-4237845)
 * Status: resolved