Make WordPress Core

Ticket #55091: 55091.diff

File 55091.diff, 643 bytes (added by rafiahmedd, 3 years ago)

Filter hook added

  • src/wp-includes/author-template.php

    diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
    index e129e6f701..f7a71ef9a6 100644
    a b function wp_list_authors( $args = '' ) { 
    434434
    435435        $args = wp_parse_args( $args, $defaults );
    436436
     437        /**
     438         * Filters the WP authors list.
     439         *
     440         * @since 5.9
     441         *
     442         * @param array   $args Allows to modify default arguments.
     443         */
     444        $args = apply_filters( 'wp_list_authors', $args );
     445
    437446        $return = '';
    438447
    439448        $query_args           = wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number', 'exclude', 'include' ) );