Custom Types (category)

add_post_type_support()

Adds support for additional features (functions) for the post type.

get_post_permalink()

Gets the URL (permalink) of a custom post type.

get_post_type()

Gets the post type by the given ID (post, page, attachment).

get_post_type_archive_link()

Returns the URL (permalink) to the archive page of a custom post type.

get_post_type_object()

Gets the object (data) of the specified post type: post, page, attachment, or new post type. The object contains all parameters (settings) of the post type.

get_post_types()

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

get_the_post_type_description()

Gets the description of the current archive page for the post type.

is_post_type_archive()

Checks if current user is on the archive page of custom post type.

is_post_type_hierarchical()

Checks if the post type is hierarchical.

is_post_type_viewable()

Determines whether the specified post type is public (accessible for viewing on the front end of the site). You need to specify an object of the post type.

post_type_archive_title()

Outputs or returns the title for the archive page of a custom post type.

post_type_exists()

Determines whether the specified post type is registered.

post_type_supports()

Checks if the post type supports the specified feature (meta-box): title, editor, author, thumbnail...

register_post_type()

Creates a new post type or changes an existing one.

remove_post_type_support()

Removes the registered capability from the specified post type.

set_post_type()

Updates the post type for the specified post (record). For example: post >> page.

unregister_post_type()

Cancels the registration of the specified post type. Deletes the post type.