woocommerce_product_editor_product_templates
woocommerce_product_editor_product_templates
Appears in: woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3
Hook Type: filter
Displaying hooks found in version: woocommerce.9.2.3apply_filters('woocommerce_product_editor_product_templates') is found 1 times:
- /src/Admin/Features/ProductBlockEditor/Init.php line 403
* Allows for new product template registration. * * @since 8.5.0 */ $this->product_templates = apply_filters( 'woocommerce_product_editor_product_templates', $this->get_default_product_templates() ); $this->product_templates = $this->create_default_product_template_by_custom_product_type( $this->product_templates ); usort( $this->product_templates, function ( $a, $b ) { return $a->get_order() - $b->get_order();