All features

Cherry Blossom feature

Content types Post Types: Schema

Demonstrates a structured data source linked to a post type definition.

Demonstrates a structured data source linked to a post type definition.

Capabilities and extension points

Builds a CreativeWork entity for an example project.

Projects do not have a generic Schema.org type. A real implementation should replace CreativeWork with the most specific applicable type.

  • param \WP_Post $post Singular project post.
  • param object $context Structured data request context.
  • return array CreativeWork entity.

Source reference

This editable reference page is based on the PHP documentation in content-types/post-types/example-project/class-schema.php.