Tribe__Events__Community__Tickets__Main::is_really_admin()
Combined checks to ensure that we’re on the admin when we think we are.
The Community Plugins pull admin views into the front end and thus often reports is_admin()
incorrectly.
Return
(boolean)
Source
File: src/Tribe/Main.php
public function is_really_admin() { // If we're on a Community event page, we're not in the admin. if ( tribe_is_community_my_events_page() ) { return false; } // If we're on a Community event edit page, we're not in the admin. if( tribe_is_community_edit_event_page() ) { return false; } // If we've passed `is_admin` as a requrst var and it's false, we're not in the admin. return tribe_is_truthy( tribe_get_request_var( 'is_admin', is_admin() ) ); }
Changelog
Version | Description |
---|---|
4.7.1 | Introduced. |