Editor access to menu: custom post type missing

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?

2 Answers
2

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.

Leave a Comment