WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have used this code;

$roleObject = get_role( 'editor' );
if (!$roleObject->has_cap( 'edit_theme_options' ) ) {
    $roleObject->add_cap( 'edit_theme_options' );

to add menu access for editors.

I have a custom post type 'Masterclasses". That appears correctly in the Administrator's Menu editing page but doesn't appear in the Editor's Menu editing page.

How do I add this?

share|improve this question

You can try giving capabilities for something like add_cap( 'edit_Masterclasses' )

For more you can refer to this documentation http://codex.wordpress.org/Roles_and_Capabilities#Editor

share|improve this answer
Half the problem (when searching for this online) is the confusion between this capability - to edit the custom post type - they already can. What I need is to add the Masterclasses to the Appearance-menu possibilities. Admin can Editor can't – Chris Pink Aug 7 '14 at 8:53
up vote 0 down vote accepted

As ever, when you know the answer it's maddeningly simple. The custom post types were there all along, together with their taxonomy. All posts are absent from the menu editor and have to be turned on in Screen Options.

I pressed the button and lo, there they were.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.