Thank you for getting back. Unfortunately I don’t see any capabilities associated with my CPT under the ‘All’ tab when editing my custom role.
Please forgive the newbie question, but do I have to manually declare standard capabilities like create, edit, delete when I register my CPT? I was under the impression that such caps are automatically inherited from the Post post type.
My CPT definition looks something like this:
register_post_type('spot',
array(
'labels' => array(
[...]
),
'supports' => array('title', 'thumbnail', 'revisions'),
'public' => true,
'has_archive' => true,
'show_in_rest' => true,
'rest_base' => 'spots',
'show_in_graphql' => true,
'graphql_single_name' => 'spot',
'graphql_plural_name' => 'spots',
'publicly_queryable' => true,
)
);
}
Accordingly I would simply expect to find ‘create_spot‘, edit_spot‘, ‘delete_spot‘ and so on to be selectable under my custom role capabilities.
What am I missing? Many thanks!