All features
Cherry Blossom feature
Content types Post Types: Post Type
Demonstrates a dedicated post type definition class.
Demonstrates a dedicated post type definition class.
Capabilities and extension points
Demonstrates a dedicated post type definition class.
This example remains inactive until its class is added to the content type definitions filter.
Post type identifier.
- var string
Configures the example project post type.
Gets the example project ID column value.
- param int $post_id Post ID.
- param \WP_Post $post Post object.
- param string $column_name Column name.
- param Post_Type $definition Definition object.
- return int Post ID.
Source reference
This editable reference page is based on the PHP documentation in content-types/post-types/example-project/class-post-type.php.