Triggered right before the Pay for Order form, after validation of the order and customer.
N/A
Sortie :
@param WC_Order $order The order that is being paid for. @param string $order_button_text The text for the submit button. @param array $available_gateways All available gateways.
// Ajouter une fonction au hook action 'after_woocommerce_pay'
add_action('after_woocommerce_pay', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee() {
// Votre code ici
error_log('Hook after_woocommerce_pay déclenché');
}
Chargement des actualités...