WPDev.one
Core Class

WP

class WP // Constructor: function Object() { [native code] }

WordPress environment setup class.

Methods 11 methods

Method / Return Description
add_query_var()
void

Adds a query variable to the list of public query variables.

Parameters: $qv: mixed
remove_query_var()
void

Removes a query variable from a list of public query variables.

Parameters: $name: mixed
set_query_var()
void

Sets the value of a query variable.

Parameters: $key: mixed, $value: mixed
parse_request()
bool

Parses the request to find the correct WordPress query.

Parameters: $extra_query_vars: mixed
send_headers()
void

Sends additional HTTP headers for caching, content type, etc.

build_query_string()
void

Sets the query string property based off of the query variable property.

register_globals()
void

Set up the WordPress Globals.

init()
void

Set up the current user.

query_posts()
void

Set up the Loop based on the query variables.

handle_404()
void

Set the Headers for 404, if nothing is found for requested URL.

main()
void

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

Parameters: $query_args: mixed

Properties

Property / Type Description
$public_query_vars
mixed
public
No description available.
$private_query_vars
mixed
public
No description available.
$extra_query_vars
mixed
public
No description available.
$query_vars
mixed
public
No description available.
$query_string
mixed
public
No description available.
$request
mixed
public
No description available.
$matched_rule
mixed
public
No description available.
$matched_query
mixed
public
No description available.
$did_permalink
mixed
public
No description available.

Class Information

Since Version
2.0.0
Source File
wp-includes/class-wp.php
Advertisement