woocommerce_file_download_path

woocommerce_file_download_path

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_file_download_path') is found 3 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 633
    				}
    				$download = new WC_Product_Download();
    				$download->set_id( $key );
    				$download->set_name( $value['name'] ? $value['name'] : wc_get_filename_from_url( $value['file'] ) );
    				$download->set_file( apply_filters( 'woocommerce_file_download_path', $value['file'], $product, $key ) );
    				$downloads[] = $download;
    			}
    			$product->set_downloads( $downloads );
    		}
    	}
    
    
  • /includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php line 967
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[]  = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}
    
  • /includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php line 1445
     
    			$download = new WC_Product_Download();
    			$download->set_id( ! empty( $file['id'] ) ? $file['id'] : wp_generate_uuid4() );
    			$download->set_name( $file['name'] ? $file['name'] : wc_get_filename_from_url( $file['file'] ) );
    			$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
    			$files[] = $download;
    		}
    		$product->set_downloads( $files );
    
    		return $product;
    	}