Glossary Term
get_post_type_capabilities()
get_post_type_capabilities() — Builds an object with all post type capabilities out of a post type object Post type capabilities use the ‘capability_type’ argument as a base, if the capability is not set in the ‘capabilities’ argument array or if the ‘capabilities’ argument is not supplied. The capability_type argument can optionally be registered as an array, with the first value being singular and the second plural, e.g. array(‘story, ‘stories’) Otherwise, an ‘s’ will be added to the value for the plural form. After registration, capability_type will always be a string of the singular value.
Inputs: $args (object): Post type registration arguments.
Returns stdClass: Object with all the capabilities as member variables. Field $edit_post (string): Capability to edit a post. Field $read_post (string): Capability to read a post. Field $delete_post (string): Capability to delete a post. Field $edit_posts (string): Capability to edit posts. Field $edit_others_posts (string): Capability to edit others’ posts. Field $delete_posts (string): Capability to delete posts. Field $publish_posts (string): Capability to publish posts. Field $read_private_posts (string): Capability to read private posts. Field $create_posts (string): Capability to create posts. Field $read (string): Optional. Capability to read a post. Field $delete_private_posts (string): Optional. Capability to delete private posts. Field $delete_published_posts (string): Optional. Capability to delete published posts. Field $delete_others_posts (string): Optional. Capability to delete others’ posts. Field $edit_private_posts (string): Optional. Capability to edit private posts. Field $edit_published_posts (string): Optional. Capability to edit published posts.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
