Fires after WooCommerce product attributes have been updated.
$product, $force
Sortie :
@param WC_Product $product The product object whose attributes were updated. @param bool $force Indicates if the update was forced.
// 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é');
}
Chargement des actualités...