Submit for Review not working with Custom Post Types
-
I am creating a user role who has the only the capability to edit the post but not publish it.
This works for pages but when I did the same thing with the Custom Post Types I am not getting the Submit for Review button, instead, it directly shows “Publish” button.This is my code for Creation of Custom Post Type.
/**
* Post Type: Careers.
*/$labels = array(
“name” => __(“Careers”, “mytheme”),
“singular_name” => __(“Career”, “mytheme”),
);$args = array(
“label” => __(“Careers”, “mytheme”),
“labels” => $labels,
“description” => “”,
“public” => true,
“publicly_queryable” => true,
“show_ui” => true,
“show_in_rest” => false,
“rest_base” => “”,
“has_archive” => false,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => false,
“rewrite” => array( “slug” => “careers”, “with_front” => false ),
“query_var” => true,
“menu_icon” => “dashicons-businessman”,
“supports” => array( “title”, “editor”, “thumbnail” ,”revisions”),
);register_post_type(“career”, $args);
Note- I have enabled this option in the settings page ” Include capabilities for all custom post types in the WordPress Revisor role”
- The topic ‘Submit for Review not working with Custom Post Types’ is closed to new replies.