WordPress at a glance

wp{} WP 1.0

Set up the WordPress query.

  • Global. WP. $wp_locale
  • Global. WP_Query. $wp_query
  • Global. WP_Query. $wp_the_query

No Hooks.

Return

Nothing (null).

Usage

wp( $query_vars );
$query_vars(string/array)
Default WP_Query arguments.
Default: ''

Code of wp: wp-includes/functions.php VER 5.0.1

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

Related Functions

From tag: query

More from category: Main Query

No comments
    Hello, !     Log In . Register