When you use map_meta_cap
with a custom post type (e.g. CPT book
), the capability delete_book
is not automatiqualy added to administrators.
then you need to use add_cap
to add it
When you use map_meta_cap
with a custom post type (e.g. CPT book
), the capability delete_book
is not automatiqualy added to administrators.
then you need to use add_cap
to add it