Guest User

Untitled

a guest
Jun 4th, 2012
198
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function wpse32738_get_editable_roles( $editable_roles )
  2.     {
  3.         global $wp_roles;
  4.         if ( current_user_can( 'manage_options' ) ) {
  5.             unset($role_names['administrator']);
  6.         }
  7.  
  8.         return $editable_roles;
  9.     }
  10.     add_filter( 'editable_roles', 'wpse32738_get_editable_roles' );
RAW Paste Data