Automattic\WooCommerce\Admin\Features\ProductBlockEditor
RedirectionController::set_product_templates
Check if a product is supported by the new experience.
Method of the class: RedirectionController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$RedirectionController = new RedirectionController(); $RedirectionController->set_product_templates( $product_templates ): void;
- $product_templates(array) (required)
- The registered product templates.
RedirectionController::set_product_templates() RedirectionController::set product templates code WC 10.6.2
public function set_product_templates( array $product_templates ): void {
$this->product_templates = $product_templates;
}