woocommerce_download_parse_remote_file_path
Filter the remote filepath for download.
Usage
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(string)
- File path.
Changelog
Since 6.5.0 | Introduced. |
Where the hook is called
woocommerce_download_parse_remote_file_path
woocommerce/includes/class-wc-download-handler.php 312
'file_path' => apply_filters( 'woocommerce_download_parse_remote_file_path', $file_path ),