Created
May 28, 2013 19:54
-
-
Save WebEndevSnippets/5665597 to your computer and use it in GitHub Desktop.
Plugins: Remove Shareaholic (Sexybookmarks)plugin from 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
| add_action( 'admin_menu', 'we_remove_shareaholic_menu' ); | |
| /** | |
| * Remove Shareaholic (Sexybookmarks)plugin from admin menu | |
| * | |
| */ | |
| function we_remove_shareaholic_menu() { | |
| if ( ! is_admin() ) | |
| return; | |
| if ( is_plugin_active('sexybookmarks/sexy-bookmarks.php') && ( ! current_user_can( 'manage_options' ) ) ) { | |
| remove_menu_page('sexy-bookmarks.php'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment