WP_Post_Type
class WP_Post_Type
// Constructor: function Object() { [native code] } Core class used for interacting with post types.
Methods 17 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $post_type: mixed, $args: mixed |
| set_props() void | Sets post type properties.
Parameters: $args: mixed |
| add_supports() void | Sets the features support for the post type. |
| add_rewrite_rules() void | Adds the necessary rewrite rules for the post type. |
| register_meta_boxes() void | Registers the post type meta box if a custom callback was specified. |
| add_hooks() void | Adds the future post hook action for the post type. |
| register_taxonomies() void | Registers the taxonomies for the post type. |
| remove_supports() void | Removes the features support for the post type. |
| remove_rewrite_rules() void | Removes any rewrite rules, permastructs, and rules for the post type. |
| unregister_meta_boxes() void | Unregisters the post type meta box if a custom callback was specified. |
| unregister_taxonomies() void | Removes the post type from all taxonomies. |
| remove_hooks() void | Removes the future post hook action for the post type. |
| get_rest_controller() (WP_REST_Controller | Gets the REST API controller for this post type. |
| get_revisions_rest_controller() (WP_REST_Controller | Gets the REST API revisions controller for this post type. |
| get_autosave_rest_controller() (WP_REST_Controller | Gets the REST API autosave controller for this post type. |
| get_default_labels() (string | Returns the default labels for post types. |
| reset_default_labels() void | Resets the cache for the default labels. |
Properties
| Property / Type | Description |
|---|---|
| $name mixed public | No description available. |
| $label mixed public | No description available. |
| $labels mixed public | No description available. |
| $default_labels mixed public | No description available. |
| $description mixed public | No description available. |
| $public mixed public | No description available. |
| $hierarchical mixed public | No description available. |
| $exclude_from_search mixed public | No description available. |
| $publicly_queryable mixed public | No description available. |
| $embeddable mixed public | No description available. |
| $show_ui mixed public | No description available. |
| $show_in_menu mixed public | No description available. |
| $show_in_nav_menus mixed public | No description available. |
| $show_in_admin_bar mixed public | No description available. |
| $menu_position mixed public | No description available. |
| $menu_icon mixed public | No description available. |
| $capability_type mixed public | No description available. |
| $map_meta_cap mixed public | No description available. |
| $register_meta_box_cb mixed public | No description available. |
| $taxonomies mixed public | No description available. |
| $has_archive mixed public | No description available. |
| $query_var mixed public | No description available. |
| $can_export mixed public | No description available. |
| $delete_with_user mixed public | No description available. |
| $template mixed public | No description available. |
| $template_lock mixed public | No description available. |
| $_builtin mixed public | No description available. |
| $_edit_link mixed public | No description available. |
| $cap mixed public | No description available. |
| $rewrite mixed public | No description available. |
| $supports mixed public | No description available. |
| $show_in_rest mixed public | No description available. |
| $rest_base mixed public | No description available. |
| $rest_namespace mixed public | No description available. |
| $rest_controller_class mixed public | No description available. |
| $rest_controller mixed public | No description available. |
| $revisions_rest_controller_class mixed public | No description available. |
| $revisions_rest_controller mixed public | No description available. |
| $autosave_rest_controller_class mixed public | No description available. |
| $autosave_rest_controller mixed public | No description available. |
| $late_route_registration mixed public | No description available. |