Tribe__Context::doing_ajax()
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: src/Tribe/Context.php
public function doing_ajax( $doing_ajax = null ) { if ( null !== $doing_ajax ) { $this->doing_ajax = (bool) $doing_ajax; } else { $this->doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX; } return $this->doing_ajax; }
Changelog
Version | Description |
---|---|
4.9.5 | Removed the $doing_ajax parameter. |
4.7.12 | Introduced. |