Skip to content

Instantly share code, notes, and snippets.

@GaryJones
Created January 31, 2012 00:29
Show Gist options
  • Save GaryJones/1707813 to your computer and use it in GitHub Desktop.
Save GaryJones/1707813 to your computer and use it in GitHub Desktop.
Remove Prose Design Settings menu link
<?php
remove_theme_support( 'prose-design-settings' );
<?php
add_action( 'init', 'custom_remove_support' );
/**
* Remove Prose design settings if logged in user does not have a designer role.
*
* @author Gary Jones
* @link http://code.garyjones.co.uk/remove-prose-settings/
*/
function custom_remove_support() {
global $user_login;
get_currentuserinfo();
if ( 'designer' != $user_login )
remove_theme_support('prose-design-settings');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment