Created
September 4, 2025 09:25
-
-
Save nicmare/a45c72c26791d73f5e0fbd4a998e51e9 to your computer and use it in GitHub Desktop.
Hide WP Armour Admin Menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // hide wp armour menu from editor role | |
| function remove_wpa_menu(){ | |
| if(!is_admin()) return; | |
| if(current_user_can('editor')) | |
| remove_action('admin_menu', 'wpa_plugin_menu'); | |
| } | |
| add_action("wp_loaded",'remove_wpa_menu'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment