Skip to content

Instantly share code, notes, and snippets.

@technosailor
Created February 6, 2012 21:04
Show Gist options
  • Save technosailor/1754856 to your computer and use it in GitHub Desktop.
Save technosailor/1754856 to your computer and use it in GitHub Desktop.
<?php
function foo_remove_bbp_for_subscribers()
{
if( !current_user_can('subscriber') )
return false;
if( !class_exists('BBP_Admin') )
return false;
global $bbp;
remove_action( 'admin_menu', array( $bbp, 'admin_menus' ) );
}
add_action( 'init', 'foo_remove_bbp_for_subscribers' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment