woocommerce_download_parse_remote_file_path
Filter the remote filepath for download.
Использование
add_filter( 'woocommerce_download_parse_remote_file_path', 'wp_kama_woocommerce_download_parse_remote_file_path_filter' );
/**
* Function for `woocommerce_download_parse_remote_file_path` filter-hook.
*
* @param string $file_path File path.
*
* @return string
*/
function wp_kama_woocommerce_download_parse_remote_file_path_filter( $file_path ){
// filter...
return $file_path;
}
- $file_path(строка)
- File path.
Список изменений
| С версии 6.5.0 | Введена. |
Где вызывается хук
woocommerce_download_parse_remote_file_path
woocommerce/includes/class-wc-download-handler.php 309
'file_path' => apply_filters( 'woocommerce_download_parse_remote_file_path', $file_path ),