Tribe__Context::doing_php_initial_state()

Whether the current request is for a PHP-rendered initial state or not.

This method is a shortcut to make sure we’re not doing an AJAX, REST or Cron request.


Return

(bool) Whether the current request is for a PHP-rendered initial state or not.


Top ↑

Source

File: src/Tribe/Context.php

	public function doing_php_initial_state() {
		return ! $this->doing_rest() && ! $this->doing_ajax() && ! $this->doing_cron();
	}

Top ↑

Changelog

Changelog
Version Description
4.9.20 Introduced.