Helper method that updates all the post meta for a coupon based on it's settings in the WC_Coupon class.
$coupon, $this->updated_props
Sortie :
@param WC_Coupon $coupon Coupon object.
// Ajouter une fonction au hook action 'woocommerce_coupon_object_updated_props'
add_action('woocommerce_coupon_object_updated_props', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($coupon, $this->updated_props) {
// Votre code ici
error_log('Hook woocommerce_coupon_object_updated_props déclenché');
}
Chargement des actualités...