wp_list_authors_args filter-hookWP 6.1.0

Filters the query arguments for the list of all authors of the site.

Usage

add_filter( 'wp_list_authors_args', 'wp_kama_list_authors_args_filter', 10, 2 );

/**
 * Function for `wp_list_authors_args` filter-hook.
 * 
 * @param array $query_args  The query arguments for get_users().
 * @param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults.
 *
 * @return array
 */
function wp_kama_list_authors_args_filter( $query_args, $parsed_args ){

	// filter...
	return $query_args;
}
$query_args(array)
The query arguments for get_users().
$parsed_args(array)
The arguments passed to wp_list_authors() combined with the defaults.

Changelog

Since 6.1.0 Introduced.

Where the hook is called

wp_list_authors()
wp_list_authors_args
wp-includes/author-template.php 470
$query_args = apply_filters( 'wp_list_authors_args', $query_args, $parsed_args );

Where the hook is used in WordPress

Usage not found.