Code Snippets

Remove Shareaholic (Sexybookmarks) from Admin

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');
}
}
view raw functions.php hosted with ❤ by GitHub