woocommerce_process_product_file_download_paths хук-событиеWC 1.0

Использование

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
-

Где вызывается хук

WC_Product_Data_Store_CPT::update_downloads()
woocommerce_process_product_file_download_paths
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 837
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 839
do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );

Где используется хук в WooCommerce

Использование не найдено.