Controls the maximum number of Payment Methods that will be listed via the My Account page.
get_option( 'posts_per_page'
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_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';
}
Chargement des actualités...