woocommerce_product_attributes_updated

ACTION woocommerce\includes\data-stores\class-wc-product-data-store-cpt.php (ligne 1031) github
Fires after WooCommerce product attributes have been updated.

Paramètres

Entrée :
$product, $force
Sortie :
@param WC_Product $product The product object whose attributes were updated.
@param bool $force Indicates if the update was forced.

Utilisation

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

function ma_fonction_personnalisee($product, $force) {
    // Votre code ici
    error_log('Hook woocommerce_product_attributes_updated déclenché');
}

Actualités

Chargement des actualités...