[wp-trac] [WordPress Trac] #25360: Add a filter in WP_Users_List_Table
WordPress Trac
noreply at wordpress.org
Fri Sep 20 01:01:13 UTC 2013
#25360: Add a filter in WP_Users_List_Table
-----------------------------+-----------------------------
Reporter: juliobox | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: trivial | Keywords:
-----------------------------+-----------------------------
Hello
Can we (i) request a filter in the WP_Users_List_Table class, in the
''prepare_items()'' function :
Replace
{{{
// Query the user IDs for this page
$wp_user_search = new WP_User_Query( $args );
}}}
by
{{{
// Query the user IDs for this page
$args = apply_filters( 'users_list_table_args', $args );
$wp_user_search = new WP_User_Query( $args );
}}}
The goal is to hack the query of course.
Thank you
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25360>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list