Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

register_post_type()

3 tags 1 category

register_post_type() — Registers a post type. Note: Post type registrations should not be hooked before the {

Inputs: $post_type (string): Post type key. Must not exceed 20 characters and may only contain lowercase alphanumeric characters, dashes, and underscores. See sanitize_key(). $args (array|string): Array or string of arguments for registering a post type. Field $label (string): Name of the post type shown in the menu. Usually plural. Default is value of $labels[‘name’]. Field $labels (string[]): An array of labels for this post type. If not set, post labels are inherited for non-hierarchical types and page labels for hierarchical ones. See get_post_type_labels() for a full list of supported labels. Field $description (string): A short descriptive summary of what the post type is. Default empty. Field $public (bool): Whether a post type is intended for use publicly either via the admin interface or by front-end users.

Returns WP_Post_Type|WP_Error: The registered post type object on success, WP_Error object on failure.

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…