wp-includes/class-wp-post-type.php:17Core class used for interacting with post types.
Every hook that fires from inside WP_Post_Type, in the order it appears in the class, grouped by the method that fires it.
$namestringpublic$labelstringpublic$labelsstdClasspublic$default_labels(string|null)[][]protected static$descriptionstringpublic$publicboolpublic$hierarchicalboolpublic$exclude_from_searchboolpublic$publicly_queryableboolpublicparse_request().$embeddableboolpublic$show_uiboolpublic$show_in_admin_barboolpublic$capability_typestringpublic$map_meta_capboolpublic$register_meta_box_cbcallablepublic$taxonomiesstring[]public$has_archivebool|stringpublic$query_varstring|boolpublic$can_exportboolpublic$delete_with_userboolpublic$templatearray[]public$template_lockstring|falsepublic$_builtinboolpublic$_edit_linkstringpublic$capstdClasspublic$rewritearray|falsepublic$supportsarray|boolpublic$show_in_restboolpublic$rest_basestring|boolpublic$rest_namespacestring|boolpublic$rest_controller_classstring|boolpublic$rest_controllerWP_REST_Controllerpublic$revisions_rest_controller_classstring|boolpublic$revisions_rest_controllerWP_REST_Controllerpublic$autosave_rest_controller_classstring|boolpublic$autosave_rest_controllerWP_REST_Controllerpublic$late_route_registrationboolpublic#[AllowDynamicProperties]final class WP_Post_Type { /** * Post type key. * * @since 4.6.0 * @var string $name */ public $name; /** * Name of the post type shown in the menu. Usually plural. * * @since 4.6.0 * @var string $label */ public $label; /** * Labels object 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() * * @since 4.6.0 * @var stdClass $labels */ public $labels; /** * Default labels. * * @since 6.0.0 * @var (string|null)[][] $default_labels */ protected static $default_labels = array(); /** * A short descriptive summary of what the post type is. * * Default empty. * * @since 4.6.0 * @var string $description */ public $description = ''; /** * Whether a post type is intended for use publicly either via the admin interface or by front-end users. * * While the default settings of $exclude_from_search, $publicly_queryable, $show_ui, and $show_in_nav_menus * are inherited from public, each does not rely on this relationship and controls a very specific intention. * * Default false. * * @since 4.6.0 * @var bool $public */ public $public = false; /** * Whether the post type is hierarchical (e.g. page). * * Default false. * * @since 4.6.0 * @var bool $hierarchical */ public $hierarchical = false; /** * Whether to exclude posts with this post type from front end search * results. * * Default is the opposite value of $public. * * @since 4.6.0 * @var bool $exclude_from_searchIntroduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-post-type.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.