Guide

Page-like types architecture

Registry, supports, format enforcement, and pipeline opt-in.

Registry

includes/class-registry.php standardizes labels, rewrite slugs, taxonomies, and default supports. Concrete types are registered from includes/class-plugin.php.

Default taxonomies: category, collection, formats, languages, research-teams. Types may merge additional taxonomies.

Default supports include core editor features plus platform supports such as prc-schema-seo, prc-bylines, prc-art-direction, prc-markdown-for-agents, and others. Types with pub_listing: true also get prc-publication-listing.

Each registered type also receives notes editor support (merged without overwriting existing editor supports).

Built-in page supports

On init, the plugin adds custom-fields and comments support to the core page post type.

Format enforcement

On prc_platform_on_incremental_save, the registry ensures a matching formats term exists and is assigned.

Pipeline opt-in

Registered slugs are appended to prc_platform_post_publish_pipeline_post_types.

Adding a type

Call Registry::register() from Plugin::init_dependencies(), then flush rewrite rules. See the plugin README for the argument shape.

Was this helpful?