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
Works based on: WP::main()

No Hooks.


Nothing (null).


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

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

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