woocommerce_process_product_file_download_paths

ACTION woocommerce\includes\data-stores\class-wc-product-data-store-cpt.php (ligne 1058) github
Update downloads.

Paramètres

Entrée :
$product->get_parent_id(
Sortie :
@param WC_Product $product Product object.
@param bool       $force Force update. Used during create.
@return bool If updated or not.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_process_product_file_download_paths'
add_action('woocommerce_process_product_file_download_paths', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($product->get_parent_id() {
    // Votre code ici
    error_log('Hook woocommerce_process_product_file_download_paths déclenché');
}

Actualités

Chargement des actualités...