Authors Widget: add filter to allow adding your own arguments to get_users #13141
Labels
[Feature] Extra Sidebar Widgets
Good For Community
[Pri] Low
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
[Type] Good First Bug
Milestone
The Authors Widget allows you to display a list of users from your site.
jetpack/modules/widgets/authors.php
Line 93 in 2240568
We've added a filter,
jetpack_widget_authors_exclude
, allowing you to exclude some specific users from being displayed on the site.However, we could also add a filter for the whole array passed to
get_users
, this way folks could add their own arguments, such asorder
ororderby
.Suggested here:
https://developer.jetpack.com/hooks/jetpack_widget_authors_exclude/#comment-19398
The text was updated successfully, but these errors were encountered: