{"id":4237419,"date":"2013-10-19T23:52:47","date_gmt":"2013-10-19T23:52:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/edit-the-plugin\/"},"modified":"2016-08-21T06:14:01","modified_gmt":"2016-08-21T06:14:01","slug":"edit-the-plugin","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/edit-the-plugin\/","title":{"rendered":"Edit the plugin"},"content":{"rendered":"<p>HI,<br \/>\nI tried to edit the plugin to hide some plugins from the menu i edited this part:<\/p>\n<p>function admin_menu() {<br \/>\n\t\t\tif ( current_user_can( &#8216;webmaster&#8217; ) ) {<br \/>\n\t\t\t\tremove_menu_page( &#8216;options-general.php&#8217; );<br \/>\n\t\t\t\tremove_menu_page( &#8216;branding&#8217; );<br \/>\n\t\t\t\tremove_menu_page( &#8216;sucuriscan&#8217; );<br \/>\n\t\t\t\tremove_menu_page( &#8216;tools.php&#8217; );<br \/>\n\t\t\t\tremove_menu_page( &#8216;edit.php?post_type=acf&#8217; );<\/p>\n<p>\t\t\t}<\/p>\n<p>I added another string like remove_menu_page( &#8216;edit.php?post_type=acf&#8217; ); changing edit.php?post_type=acf with the lugin page but it doesn&#8217;t work, i don&#8217;t understand why \ud83d\ude41 I&#8217;m working on a local server<\/p>\n<p>https:\/\/wordpress.org\/plugins\/webmaster-user-role\/<\/p>\n","protected":false},"template":"","class_list":["post-4237419","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4237419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4237419\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4237419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}