pre_wp_list_authors_post_counts_query
pre_wp_list_authors_post_counts_query
Appears in: wordpress-6.1
Hook Type: filter
Displaying hooks found in version: wordpress-6.1apply_filters('pre_wp_list_authors_post_counts_query') is found 1 times:
- /wp-includes/author-template.php line 481
* * @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. */ $post_counts = apply_filters( 'pre_wp_list_authors_post_counts_query', false, $parsed_args ); if ( ! is_array( $post_counts ) ) { $post_counts = $wpdb->get_results( "SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE " . get_private_posts_cap_sql( 'post' ) . '