Automattic\WooCommerce\Blocks\Templates

AbstractTemplateWithFallback::render_block_templatepublicWC 1.0

This method is hooked to WordPress' template_redirect and allows template classes to:

  1. Decide when block templates should be rendered based on the context.
  2. 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() WC 11.0.1

abstract public function render_block_template();