Custom post type (post_type) (tag)

add_post_type_support()

Register support of certain features for a post type.

get_post_type()

Retrieves the post type of the current post or of a given post.

get_post_type_object()

Retrieves a post type object by name.

get_post_types()

Gets data (objects) of registered post types. Not the posts themselves, but the post types data.

is_post_type_hierarchical()

Checks if the post type is hierarchical.

is_post_type_viewable()

Determines whether a post type is considered "viewable".

post_type_exists()

Determines whether the specified post type is registered.

post_type_supports()

Check a post type's support for a given feature.

register_post_type()

Creates a new post type or changes an existing one.

remove_post_type_support()

Remove support for a feature from a post type.

set_post_type()

Update the post type for the post ID.

unregister_post_type()

Unregisters (deletes) a post type.

WP_Post_Type{}

Core class used for interacting with post types.