Uses
Uses | Description |
---|---|
wp-includes/load.php: get_current_blog_id() | Retrieve the current site ID. |
wp-includes/functions.php: wp_parse_args() | Merge user defined arguments into defaults array. |
Fills in missing query variables with default values.
(array) (Required) Query vars, as passed to WP_User_Query
.
(array) Complete query variables with undefined ones filled in with defaults.
File: wp-includes/class-wp-user-query.php
public static function fill_query_vars( $args ) { $defaults = array( 'blog_id' => get_current_blog_id(), 'role' => '', 'role__in' => array(), 'role__not_in' => array(), 'meta_key' => '', 'meta_value' => '', 'meta_compare' => '', 'include' => array(), 'exclude' => array(), 'search' => '', 'search_columns' => array(), 'orderby' => 'login', 'order' => 'ASC', 'offset' => '', 'number' => '', 'paged' => 1, 'count_total' => true, 'fields' => 'all', 'who' => '', 'has_published_posts' => null, 'nicename' => '', 'nicename__in' => array(), 'nicename__not_in' => array(), 'login' => '', 'login__in' => array(), 'login__not_in' => array(), ); return wp_parse_args( $args, $defaults ); }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user_query/fill_query_vars