WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_file_download_path хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_file_download_path', 'filter_function_name_7577', 10, 3 );
function filter_function_name_7577( $file_file, $product, $key ){
	// filter...

	return $file_file;
}
$file_file
-
$product
-
$key
-

Где вызывается хук

WC_API_Products::save_downloadable_files()
woocommerce_file_download_path
WC_REST_Products_V2_Controller::save_downloadable_files()
woocommerce_file_download_path
WC_REST_Products_V1_Controller::save_downloadable_files()
woocommerce_file_download_path
WC_Product_Data_Store_CPT::read_downloads()
woocommerce_file_download_path
woocommerce/includes/legacy/api/v2/class-wc-api-products.php 1537
$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/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php 1238
$download->set_file( apply_filters( 'woocommerce_file_download_path', $file['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/data-stores/class-wc-product-data-store-cpt.php 496
$download->set_file( apply_filters( 'woocommerce_file_download_path', $value['file'], $product, $key ) );

Где используется хук в ядре WooCommerce

Использование не найдено.