Clanbite Forums

class Template_Router

Picks 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

Defined in inc/Forums/Template_Router.php