WC_Post_Data::process_product_file_download_pathspublic staticWC 1.0

Deprecated since 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 may 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.

Returns

void. 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() code WC 11.0.1

public static function process_product_file_download_paths( $product_id, $variation_id, $downloads ) {
	wc_deprecated_function( __FUNCTION__, '3.3' );
}