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

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

add_filter( 'woocommerce_file_download_filename', 'wp_kama_woocommerce_file_download_filename_filter', 10, 2 );

/**
 * Function for `woocommerce_file_download_filename` filter-hook.
 * 
 * @param  $filename   
 * @param  $product_id 
 *
 * @return 
 */
function wp_kama_woocommerce_file_download_filename_filter( $filename, $product_id ){

	// filter...
	return $filename;
}
$filename
-
$product_id
-

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

Controller::prepare_item_for_response()
WC_Download_Handler::download()
woocommerce_file_download_filename
woocommerce/src/Admin/API/Reports/Downloads/Controller.php 115
$response->data['file_name'] = apply_filters( 'woocommerce_file_download_filename', $filename, $product_id );
woocommerce/includes/class-wc-download-handler.php 229
$filename = apply_filters( 'woocommerce_file_download_filename', $filename, $product_id );

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

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