Filter the parameters of `get_users` call in the Widget Authors widget. See the following for `get_users` default arguments: https://codex.wordpress.org/Function_Reference/get_users
Parameters
- $get_author_params
array Array of params used in `get_user`
Changelog
- Introduced in Jetpack 7.7.0
How to use this hook
Notes
See the following forget_users default arguments: https://codex.wordpress.org/Function_Reference/get_users
In the example below, we will use the filter to exclude author 1 from the widget, and order authors from the oldest registered to the newest:
function jetpackcom_order_authors_widget( $get_author_params ) {
$get_author_params['exclude'] = array( 1 );
$get_author_params['order'] = 'ASC';
$get_author_params['orderby'] = 'registered';
return $get_author_params;
}
add_filter( 'jetpack_widget_authors_params', 'jetpackcom_order_authors_widget' );