woocommerce_product_editor_product_templates

woocommerce_product_editor_product_templates

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_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();