Uses
| Uses | Description |
|---|---|
| wp-includes/class-wp.php: WP::main() | Sets up all of the variables required by the WordPress environment. |
Set up the WordPress query.
(string|array) (Optional) Default WP_Query arguments.
Default value: ''
File: wp-includes/functions.php
function wp( $query_vars = '' ) {
global $wp, $wp_query, $wp_the_query;
$wp->main( $query_vars );
if ( ! isset( $wp_the_query ) ) {
$wp_the_query = $wp_query;
}
} | Version | Description |
|---|---|
| 2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp