Controls the maximum number of Payment Methods that will be listed via the My Account page.
$tokens, $customer_id, $gateway_id
Sortie :
@param int $limit Defaults to the value of the `posts_per_page` option.
// 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;
}
Chargement des actualités...