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.
Метод класса: AbstractTemplateWithFallback{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$AbstractTemplateWithFallback = new AbstractTemplateWithFallback(); $AbstractTemplateWithFallback->render_block_template();
Код AbstractTemplateWithFallback::render_block_template() AbstractTemplateWithFallback::render block template WC 11.0.1
abstract public function render_block_template();