Tribe__Main::doing_ajax( $doing_ajax = null )
Helper function to indicate whether the current execution context is AJAX
This method exists to allow us test code that behaves differently depending on the execution context.
Return
(boolean)
Source
File: Tribe__Main.php
public function doing_ajax( $doing_ajax = null ) {
if ( ! is_null( $doing_ajax ) ) {
$this->doing_ajax = $doing_ajax;
}
return $this->doing_ajax;
}
Changelog
| Version | Description |
|---|---|
| 4.0 | Introduced. |