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.8.1

do_action('woocommerce_process_product_file_download_paths') is found 2 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1049
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
            }
        }
     
        if ( $product->is_type( ProductType::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 1051
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
            if ( $product->is_type( ProductType::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;
    }