pre_wp_list_authors_post_counts_query

过滤钩子


apply_filters( 'pre_wp_list_authors_post_counts_query', false, $parsed_args )
参数
  • (int[]|false)
    $post_counts
    Array of post counts, keyed by author ID.
    Required:
  • (array)
    $parsed_args
    The arguments passed to wp_list_authors() combined with the defaults.
    Required:
定义位置
  • wp-includes/author-template.php
    , line 481
引入
6.1.0
弃用

Filters whether to short-circuit performing the query for author post counts.

$post_counts = apply_filters( 'pre_wp_list_authors_post_counts_query', false, $parsed_args );