tec_is_organizer_view()
Conditional function for if we are on an organizer view.
Return
(bool)
Source
File: src/functions/template-tags/general.php
function tec_is_organizer_view(): bool { $context = tribe_context(); $is_organizer_view = tec_is_view( Organizer_View::get_view_slug() ); /** * Allows filtering of the tec_is_organizer_view boolean value. * * @since 6.0.7 * * @param boolean $is_organizer_view Whether you're on an organizer view or not */ return (bool) apply_filters( 'tec_is_organizer_view', $is_organizer_view, $context ); }
Changelog
Version | Description |
---|---|
6.0.7 | Introduced. |