On this page
WP::remove_query_var( string $name )
Removes a query variable from a list of public query variables.
Parameters
$namestring Required-
Query variable name.
Source
File: wp-includes/class-wp.php. View all references
public function remove_query_var( $name ) {
$this->public_query_vars = array_diff( $this->public_query_vars, array( $name ) );
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Taxonomy::remove_rewrite_rules() wp-includes/class-wp-taxonomy.php | Removes any rewrite rules, permastructs, and rules for the taxonomy. |
| WP_Post_Type::remove_rewrite_rules() wp-includes/class-wp-post-type.php | Removes any rewrite rules, permastructs, and rules for the post type. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp/remove_query_var