woocommerce_get_customer_payment_tokens_limit

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

Paramètres

Entrée :
get_option( 'posts_per_page'
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_limit'
add_filter('woocommerce_get_customer_payment_tokens_limit', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(get_option( 'posts_per_page') {
    // Modifier la valeur
    return get_option( 'posts_per_page';
}

Actualités

Chargement des actualités...