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:
定义位置
相关勾子
rest_this-post_type_querywp_list_authors_argsrest_post_format_search_querywp_sitemaps_posts_query_argsrest_post_search_query
相关方法
get_author_posts_urlwp_edit_posts_querywp_edit_attachments_querywp_untrash_post_commentswp_list_authorswp_trash_post_comments
引入
6.1.0
弃用
-

pre_wp_list_authors_post_counts_query是一个过滤钩子,用于在执行作者文章计数查询前过滤。这个过滤器可以用来修改作者文章计数查询,或者给查询添加额外的条件。

过滤是否短路执行作者文章数量的查询。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 18:09:53

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: