Automattic\WooCommerce\Blocks\Templates
AbstractTemplateWithFallback::render_block_template
This method is hooked to WordPress' template_redirect and allows template classes to:
- Decide when block templates should be rendered based on the context.
- Execute specific logic, such as managing the compatibility layer for
legacy template support.
Child classes must implement this method to define their template rendering conditions and any additional template-specific behavior.
Method of the class: AbstractTemplateWithFallback{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AbstractTemplateWithFallback = new AbstractTemplateWithFallback(); $AbstractTemplateWithFallback->render_block_template();
AbstractTemplateWithFallback::render_block_template() AbstractTemplateWithFallback::render block template code WC 10.8.1
abstract public function render_block_template();