How to disable ‘create_posts’ capability?
-
I created a custom post type, which I’ll be stuffing manually with posts using a hook (aka. it will grab content from a form submitted in WPForms, and will insert the content into my custom pod).
I want to disable the “Add New” functionality in the backend, so that the “Add New” button doesn’t appear anywhere (in the side menu, or on the list view page for the custom post type).
I see this can be accomplished using:
register_post_type('custom_post_name', array( 'capabilities' => ['create_posts' => false], 'map_meta_cap' => true, ));But I don’t see an equivalent in the PODS editor.
Is there a way I can disable the “create_posts” capability?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘How to disable ‘create_posts’ capability?’ is closed to new replies.