WP::main

Advertisement

Summery Summery

Sets up all of the variables required by the WordPress environment.

Syntax Syntax

WP::main( string|array $query_args = '' )

Description Description

The action ‘wp’ has one parameter that references the WP object. It allows for accessing the properties and methods to further manipulate the object.

Parameters Parameters

$query_args

(string|array) (Optional) Passed to parse_request().

Default value: ''

Source Source

File: wp-includes/class-wp.php

	 * Sets up all of the variables required by the WordPress environment.
	 *
	 * The action {@see 'wp'} has one parameter that references the WP object. It
	 * allows for accessing the properties and methods to further manipulate the
	 * object.
	 *
	 * @since 2.0.0
	 *
	 * @param string|array $query_args Passed to parse_request().
	 */
	public function main( $query_args = '' ) {
		$this->init();
		$this->parse_request( $query_args );
		$this->send_headers();
		$this->query_posts();
		$this->handle_404();
		$this->register_globals();

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.