wpseek.com
A WordPress-centric search engine for devs and theme authors



wp › WordPress Function

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

Sets up the WordPress query.



Related Functions: wp_die, wp_rss

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