WP::add_query_var( string $qv )
Adds a query variable to the list of public query variables.
Parameters
- $qv
-
(string) (Required) Query variable name.
Source
File: wp-includes/class-wp.php
public function add_query_var( $qv ) { if ( ! in_array( $qv, $this->public_query_vars, true ) ) { $this->public_query_vars[] = $qv; } }
Expand full source code Collapse full source code View on Trac View on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |