pre_wp_list_authors_post_counts_query

FILTER wp-includes\author-template.php (ligne 488) github
Filters whether to short-circuit performing the query for author post counts.

Paramètres

Entrée :
false, $parsed_args
Sortie :
@param int[]|false $post_counts Array of post counts, keyed by author ID.
@param array       $parsed_args The arguments passed to wp_list_authors() combined with the defaults.

Utilisation

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

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

Actualités

Chargement des actualités...