Filters the user count before queries are run. Return a non-null value to cause count_users() to return early.
null, $strategy, $site_id
Sortie :
@param null|array $result The value to return instead. Default null to continue with the query. @param string $strategy Optional. The computational strategy to use when counting the users. @param int $site_id The site ID to count users for.
// Modifier la valeur avec le filtre 'pre_count_users'
add_filter('pre_count_users', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...