Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created May 28, 2013 19:54
Show Gist options
  • Save WebEndevSnippets/5665597 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/5665597 to your computer and use it in GitHub Desktop.
Plugins: Remove Shareaholic (Sexybookmarks)plugin from admin menu
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