woocommerce_file_download_path хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_file_download_path', 'filter_function_name_7143', 10, 3 ); function filter_function_name_7143( $file_file, $product, $key ){ // filter... return $file_file; }
- $file_file
- -
- $product
- -
- $key
- -
Где вызывается хук
woocommerce_file_download_path
woocommerce_file_download_path
woocommerce_file_download_path
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 1411
$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 502
$download->set_file( apply_filters( 'woocommerce_file_download_path', $value['file'], $product, $key ) );