A WordPress-centric search engine for devs and theme authors



wp ›

Since2.0.0
Deprecatedn/a
wp ( $query_vars = '' )
Parameters:
  • (string|array) $query_vars Default WP_Query arguments.
    Required: No
    Default: (empty)
Defined at:
Codex:

Set up the WordPress query.



Related Functions: wp_rss, wp_die

Source

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;
	}
}