woocommerce_process_product_file_download_paths

woocommerce_process_product_file_download_paths

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_process_product_file_download_paths') is found 2 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1031
    				}
    			}
    
    			if ( $product->is_type( 'variation' ) ) {
    				do_action( 'woocommerce_process_product_file_download_paths', $product->get_parent_id(), $product->get_id(), $downloads );
    			} else {
    				do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );
    			}
    
    			return $this->update_or_delete_post_meta( $product, '_downloadable_files', wp_slash( $meta_values ) );
    		}
    
  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1033
     
    			if ( $product->is_type( 'variation' ) ) {
    				do_action( 'woocommerce_process_product_file_download_paths', $product->get_parent_id(), $product->get_id(), $downloads );
    			} else {
    				do_action( 'woocommerce_process_product_file_download_paths', $product->get_id(), 0, $downloads );
    			}
    
    			return $this->update_or_delete_post_meta( $product, '_downloadable_files', wp_slash( $meta_values ) );
    		}
    		return false;
    	}