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.


Parameters

$doing_frontend

(bool) (Required) Whether what is being done happens in the context of the frontend or not.


Top ↑

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 );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.4 Introduced.