GC::main()

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

GC::main( string|array$query_args=”)

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

参数

$query_args

(string|array) (Optional) Passed to parse_request().

Default value: ”

源文件

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

	public function main( $query_args = '' ) {
		$this->init();
		$this->parse_request( $query_args );
		$this->send_headers();
		$this->query_posts();
		$this->handle_404();
		$this->register_globals();

		/**
		 * Fires once the GeChiUI environment has been set up.
		 *
		 * @since 2.1.0
		 *
		 * @param GC $this Current GeChiUI environment instance (passed by reference).
		 */
		do_action_ref_array( 'gc', array( &$this ) );
	}