WP::remove_query_var()
Removes a query variable from a list of public query variables.
Method of the class: WP{}
No Hooks.
Return
null
. Ничего (null).
Usage
global $wp; $wp->remove_query_var( $name );
- $name(string) (required)
- Query variable name.
Changelog
Since 4.5.0 | Introduced. |
WP::remove_query_var() WP::remove query var code WP 6.3
public function remove_query_var( $name ) { $this->public_query_vars = array_diff( $this->public_query_vars, array( $name ) ); }