WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP::main() public WP 2.0.0

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

The action 'wp' has one parameter that references the WP object. It allows for accessing the properties and methods to further manipulate the object.

Это метод класса: WP{}

Хуки из метода

Null. Ничего.


$WP = new WP();
$WP->main( $query_args );
Passed to parse_request().
По умолчанию: ''

Список изменений

С версии 2.0.0 Введена.

Код WP::main() WP 5.5.1

public function main( $query_args = '' ) {
	$this->parse_request( $query_args );

	 * Fires once the WordPress environment has been set up.
	 * @since 2.1.0
	 * @param WP $this Current WordPress environment instance (passed by reference).
	do_action_ref_array( 'wp', array( &$this ) );