WC_Admin_Post_Types::process_product_file_download_paths()publicWC 1.0

Deprecated from version 3.3.0 and moved to post-data class.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Grant downloadable file access to any newly added files on any existing. orders for this product that have previously been granted downloadable file access.

{} It's a method of the class: WC_Admin_Post_Types{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Post_Types = new WC_Admin_Post_Types();
$WC_Admin_Post_Types->process_product_file_download_paths( $product_id, $variation_id, $downloadable_files );
$product_id(int) (required)
product identifier.
$variation_id(int) (required)
optional product variation identifier.
$downloadable_files(array) (required)
newly set files.

Changelog

Deprecated Since 3.3.0 and moved to post-data class.

Code of WC_Admin_Post_Types::process_product_file_download_paths() WC 6.7.0

public function process_product_file_download_paths( $product_id, $variation_id, $downloadable_files ) {
	wc_deprecated_function( 'WC_Admin_Post_Types::process_product_file_download_paths', '3.3', '' );
	WC_Post_Data::process_product_file_download_paths( $product_id, $variation_id, $downloadable_files );
}