woocommerce_get_order_payment_tokens

FILTER woocommerce\includes\class-wc-payment-tokens.php (ligne 139) github
Returns an array of payment token objects associated with the passed order ID.

Paramètres

Entrée :
$tokens, $order_id
Sortie :
@param int $order_id       Order ID.
@return WC_Payment_Token[] Array of token objects.

Utilisation

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

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

Actualités

Chargement des actualités...