tribe_doing_frontend( bool $doing_frontend )
Registers truthy or falsy callbacks on the filters used to detect if any frontend operation is being done for logged in users or not.
Contents
Parameters
- $doing_frontend
-
(bool) (Required) Whether what is being done happens in the context of the frontend or not.
Source
File: src/functions/template-tags/general.php
function tribe_doing_frontend( $doing_frontend ) {
$callback = $doing_frontend ? '__return_true' : '__return_false';
add_filter( 'tribe_doing_frontend', $callback );
}
Changelog
| Version | Description |
|---|---|
| 4.7.4 | Introduced. |