Post delete errors on CPT with custom capability_type
-
I have created a CPT (documents) with custom capability_type. This is to restrict CPT access to a specific custom role.
However, despite this role having all permissions for this CPT (including delete), delete icon will not show in Nested pages view.
Moreover, if custom post is deleted (still accessible in edit view) next page is an error indicating that the “edit_page” capability is needed (post is still deleted). Adding edit_page for this role is not an option.
__________________
You do not have sufficient permissions to access this admin page.Reason: The current user doesn’t have the “edit_pages” capability that is required to access the “Documents → Default Documents” menu item.
___________________These errors do not occur when Nested pages is deactivated.
Also, Default view link is not shown, nor are Add and Add multiple buttons.
The topic ‘Post delete errors on CPT with custom capability_type’ is closed to new replies.