Add get and set methods to WP_User_Query
|Reported by:||wonderboymusic||Owned by:||nacin|
User queries are confusing to alter, so it would be helpful to have get and set methods a la WP_Query when altering WP_User_Query::query_vars in a filter or action.
do_action_ref_array( 'pre_user_query', array( &$this ) );
Without these methods, you have to do things like:
$query->query_vars[ 'meta_query' ] = array( $memory_hog );
$query->set( 'meta_query', array( $memory_hog ) );
Change History (14)
comment:10 nacin — 15 months ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
Note: See TracTickets for help on using tickets.