function set_capabilities() {
		$editor = get_role( 'editor' );

		$editor->add_cap( 'list_users' );
		$editor->add_cap( 'remove_users' );
		$editor->add_cap( 'add_users' );
		$editor->add_cap( 'promote_users' );
		$editor->add_cap( 'create_users' );
		$editor->add_cap( 'delete_users' );
		$editor->add_cap( 'edit_users' );

		$editor->add_cap( 'edit_theme_options' );
		$editor->remove_cap( 'switch_themes' );
	}
function set_capabilities() {
		$editor = get_role( 'editor' );

		$editor->add_cap( 'list_users' );
		$editor->add_cap( 'remove_users' );
		$editor->add_cap( 'add_users' );
		$editor->add_cap( 'promote_users' );
		$editor->add_cap( 'create_users' );
		$editor->add_cap( 'delete_users' );
		$editor->add_cap( 'edit_users' );

		$editor->add_cap( 'edit_theme_options' );
		$editor->remove_cap( 'switch_themes' );
	}
function set_capabilities ( ) { $ editor = get_role ( 'editor' ) ; $ editor -> add_cap ( 'list_users' ) ; $ editor -> add_cap ( 'remove_users' ) ; $ editor -> add_cap ( 'add_users' ) ; $ editor -> add_cap ( 'promote_users' ) ; $ editor -> add_cap ( 'create_users' ) ; $ editor -> add_cap ( 'delete_users' ) ; $ editor -> add_cap ( 'edit_users' ) ; $ editor -> add_cap ( 'edit_theme_options' ) ; $ editor -> remove_cap ( 'switch_themes' ) ; }
Set some of the editors capabilities
Set some of the editors capabilities