wp() – Set up the WordPress query.

You appear to be a bot. Output may be restricted

Description

Set up the WordPress query.

Usage

wp( $query_vars );

Parameters

$query_vars
( string|array ) optional – Default WP_Query arguments.

Returns

void

Source

File name: wordpress/wp-includes/functions.php
Lines:

1 to 9 of 9
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;
  }
}
 

 View on GitHub View on Trac