woocommerce_product_template_csv_file_path

woocommerce_product_template_csv_file_path

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_template_csv_file_path') is found 1 times:

  • /src/Admin/API/OnboardingTasks.php line 364
    	 */
    	public static function create_product_from_template( $request ) {
    		$template_name = basename( $request->get_param( 'template_name' ) );
    		$template_path = __DIR__ . '/Templates/' . $template_name . '_product.csv';
    		$template_path = apply_filters( 'woocommerce_product_template_csv_file_path', $template_path, $template_name );
    
    		$import = self::import_sample_products_from_csv( $template_path );
    
    		if ( is_wp_error( $import ) || ! is_array( $import['imported'] ) || 0 === count( $import['imported'] ) ) {
    			return new \WP_Error(
    				'woocommerce_rest_product_creation_error',