GC::add_query_var()

最后更新于:2021-11-26 07:17:20

GC::add_query_var( string$qv)

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

参数

$qv

(string) (Required) Query variable name.

源文件

文件: gc-includes/class-gc.php

	public function add_query_var( $qv ) {
		if ( ! in_array( $qv, $this->public_query_vars, true ) ) {
			$this->public_query_vars[] = $qv;
		}
	}