woocommerce_get_customer_payment_tokens

FILTER woocommerce\includes\class-wc-payment-tokens.php (ligne 88) github
Controls the maximum number of Payment Methods that will be listed via the My Account page.

Paramètres

Entrée :
$tokens, $customer_id, $gateway_id
Sortie :
@param int $limit Defaults to the value of the `posts_per_page` option.

Utilisation

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

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

Actualités

Chargement des actualités...