Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 4th, 2012  |  syntax: PHP  |  size: 0.28 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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' );
clone this paste RAW Paste Data