Just for clearance, if i add a custom post type with:
register_post_type( 'event',
array(
'labels' => array(…),
'capability_type' => ['event','events'],
'map_meta_cap' => true,
)
);
what are the resulting capabilitites? (Singular/Plural)
'read_event'
'read_events'
I can not find a minimum variant that works. In all my projects i just double the capabilities, once singular, once plural... but i think that's shitty. Can anyone clear out when to user singular, and when to use plural?
'capability_type' => ['event','events'],
is a perfectly acceptable way to define capabilities for your post type. What's shitty about it?