woocommerce_get_checkout_payment_url

FILTER woocommerce\includes\class-wc-order.php (ligne 1880) github
Generates a URL so that a customer can pay for their (unpaid - pending) order. Pass 'true' for the checkout version which doesn't offer gateway choices.

Paramètres

Entrée :
$pay_url, $this
Sortie :
@param  bool $on_checkout If on checkout.
@return string

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_get_checkout_payment_url'
add_filter('woocommerce_get_checkout_payment_url', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($pay_url) {
    // Modifier la valeur
    return $pay_url;
}

Actualités

Chargement des actualités...