This action can be used to modify the object further before it is created - it will be passed by reference.
$duplicate, $product
Sortie :
// Ajouter une fonction au hook action 'woocommerce_product_duplicate_before_save'
add_action('woocommerce_product_duplicate_before_save', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($duplicate, $product) {
// Votre code ici
error_log('Hook woocommerce_product_duplicate_before_save déclenché');
}
Chargement des actualités...