Custom post type (post_type) (tag)
| add_post_type_support() | Adds support for additional features (functions) for the post type. |
| get_post_type() | Gets the post type by the given ID (post, page, attachment). |
| 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. |
| 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_exists() | Determines whether the specified post type is registered. |
| post_type_supports() | Checks if the post type supports the specified feature (meta-box): |
| 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: |
| unregister_post_type() | Cancels the registration of the specified post type. Deletes the post type. |
| WP_Post_Type{} | Class of the core that is responsible for all types of WordPress posts. |