class Template_RouterPicks forums front templates (registered as clanbite//…) on the configured router page.
register_block_template() resolves lookups by that name, but WP 6.7+ assigns the template’s public WP_Block_Template::$id as {active_stylesheet}//{slug} for the Site Editor and REST. $_wp_current_template_id must use that canonical id so “Edit site” opens the correct template.
class final
- Full name
Kernowdev\ClanbiteForums\Forums\Template_Router
Methods
maybe_classic_loader()For classic / hybrid themes, load plugin PHP wrappers that run block markup.prime_block_theme_forums_template()After core resolves the page template, point the block canvas at the plugin forums template.register()Register hooks.
Defined in inc/Forums/Template_Router.php