This file contains 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'); | |
} | |
} |