pre_wp_list_authors_post_counts_query

pre_wp_list_authors_post_counts_query

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_wp_list_authors_post_counts_query') is found 1 times:

  • /wp-includes/author-template.php line 483
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    *
     * @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       = array();
        $post_counts_query = $wpdb->get_results(
            "SELECT DISTINCT post_author, COUNT(ID) AS count
            FROM $wpdb->posts