WC_Admin_Post_Types::process_product_file_download_paths()
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.
Method of the class: WC_Admin_Post_Types{}
No Hooks.
Return
null
. Nothing (null).
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. |
WC_Admin_Post_Types::process_product_file_download_paths() WC Admin Post Types::process product file download paths code WC 9.7.1
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 ); }