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.

Method of the class: AbstractTemplateWithFallback{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AbstractTemplateWithFallback = new AbstractTemplateWithFallback();
$AbstractTemplateWithFallback->render_block_template();

AbstractTemplateWithFallback::render_block_template() code WC 10.8.1

abstract public function render_block_template();