All features
Cherry Blossom feature
Content types: Example Project Type
Provides inactive content-type registration examples.
Provides inactive content-type registration examples.
Capabilities and extension points
Provides inactive content type registration examples.
This file is not loaded by the theme. The return below also prevents the filter registrations if the file is included accidentally. Copy the relevant example into project code and remove its return there.
Adds a post type and taxonomy using compact array definitions.
- param array $definitions Existing content type definitions.
- return array Extended content type definitions.
Adds a post type and taxonomy using dedicated definition classes.
- param array $definitions Existing content type definitions.
- return array Extended content type definitions.
Source reference
This editable reference page is based on the PHP documentation in content-types/examples.php.