after_woocommerce_pay

ACTION woocommerce\includes\shortcodes\class-wc-shortcode-checkout.php (ligne 256) github
Triggered right before the Pay for Order form, after validation of the order and customer.

Paramètres

Entrée :
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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...