woocommerce_downloadable_file_exists хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_downloadable_file_exists', 'filter_function_name_5211', 10, 2 ); function filter_function_name_5211( $file_exists, $file ){ // filter... return $file_exists; }
- $file_exists
- -
- $file
- -
Где вызывается хук
woocommerce_downloadable_file_exists
woocommerce/includes/class-wc-product-download.php 123
return apply_filters( 'woocommerce_downloadable_file_exists', file_exists( $file_url ), $this->get_file() );