wp-content/themes/twentyfourteen/functions.php:527Prints a list of all site contributors who published at least one post.
One hook fires while twentyfourteen_list_authors() runs, in this order:
Filters query arguments for listing authors.
function twentyfourteen_list_authors() { $args = array( 'fields' => 'ID', 'orderby' => 'post_count', 'order' => 'DESC', 'capability' => array( 'edit_posts' ), ); // Capability queries were only introduced in WP 5.9. if ( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ) { $args['who'] = 'authors'; unset( $args['capability'] ); } /** * Filters query arguments for listing authors. * * @since Twenty Fourteen 3.3 * * @param array $args Query arguments. */ $args = apply_filters( 'twentyfourteen_list_authors_query_args', $args ); $contributor_ids = get_users( $args ); foreach ( $contributor_ids as $contributor_id ) : $post_count = count_user_posts( $contributor_id ); // Move on if user has not published a post (yet). if ( ! $post_count ) { continue; } ?> <div class="contributor"> <div class="contributor-info"> <div class="contributor-avatar"><?php echo get_avatar( $contributor_id, 132 ); ?></div> <div class="contributor-summary"> <h2 class="contributor-name"><?php echo get_the_author_meta( 'display_name', $contributor_id ); ?></h2> <p class="contributor-bio"> <?php echo get_the_author_meta( 'description', $contributor_id ); ?> </p> <a class="button contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>"> <?php /* translators: %d: Post count. */ printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?> </a> </div><!-- .contributor-summary --> </div><!-- .contributor-info --> </div><!-- .contributor --> <?php endforeach; }Introduced in Twenty Fourteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfourteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.