WC_Post_Data::process_product_file_download_paths()
Deprecated from version 3.3.0 No action is necessary on changes to download paths since download_id is no longer based on file hash.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Update changed downloads.
Method of the class: WC_Post_Data{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Post_Data::process_product_file_download_paths( $product_id, $variation_id, $downloads );
- $product_id(int) (required)
- Product ID.
- $variation_id(int) (required)
- Variation ID. Optional product variation identifier.
- $downloads(array) (required)
- Newly set files.
Changelog
Deprecated since 3.3.0 | No action is necessary on changes to download paths since download_id is no longer based on file hash. |
WC_Post_Data::process_product_file_download_paths() WC Post Data::process product file download paths code WC 9.7.1
public static function process_product_file_download_paths( $product_id, $variation_id, $downloads ) { wc_deprecated_function( __FUNCTION__, '3.3' ); }