woocommerce_file_download_path filter-hookWC 1.0

Usage

add_filter( 'woocommerce_file_download_path', 'wp_kama_woocommerce_file_download_path_filter', 10, 3 );

/**
 * Function for `woocommerce_file_download_path` filter-hook.
 * 
 * @param  $value_file 
 * @param  $product    
 * @param  $key        
 *
 * @return 
 */
function wp_kama_woocommerce_file_download_path_filter( $value_file, $product, $key ){

	// filter...
	return $value_file;
}
$value_file
-
$product
-
$key
-

Where the hook is called

WC_Product_Data_Store_CPT::read_downloads()
woocommerce_file_download_path
WC_REST_Products_V1_Controller::save_downloadable_files()
woocommerce_file_download_path
WC_REST_Products_V2_Controller::save_downloadable_files()
woocommerce_file_download_path
WC_API_Products::save_downloadable_files()
woocommerce_file_download_path
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 502
$download->set_file( apply_filters( 'woocommerce_file_download_path', $value['file'], $product, $key ) );
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 965
$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php 1414
$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
woocommerce/includes/legacy/api/v3/class-wc-api-products.php 2036
$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );
woocommerce/includes/legacy/api/v2/class-wc-api-products.php 1537
$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['file'], $product, $key ) );

Where the hook is used in WooCommerce

Usage not found.