woocommerce_process_product_file_download_paths
Usage
add_action( 'woocommerce_process_product_file_download_paths', 'wp_kama_woocommerce_process_product_file_download_paths_action', 10, 3 ); /** * Function for `woocommerce_process_product_file_download_paths` action-hook. * * @param $product_parent_id * @param $product_id * @param $downloads * * @return void */ function wp_kama_woocommerce_process_product_file_download_paths_action( $product_parent_id, $product_id, $downloads ){ // action... }
- $product_parent_id
- -
- $product_id
- -
- $downloads
- -
Where the hook is called
woocommerce_process_product_file_download_paths
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 982
do_action( 'woocommerce_process_product_file_download_paths', $product->get_parent_id(), $product->get_id(), $downloads );
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 984
do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );