Event
Source
File: src/Tribe/Views/V2/Template/Event.php
class Event { /** * Determines the Path for the PHP file to be used as the main template * For Page base template setting it will select from theme or child theme * * @todo Integrate with Template + Context classes * * @since 4.9.2 * * @return string */ public function get_path() { $path = ( new Index() )->get_template_file( 'index' ); return $path; } }
Methods
- __construct — Event constructor.
- filter_event_properties — Filters and modifies the event WP_Post object returned from the `tribe_get_event` function to hide some sensitive information if required.
- filter_get_the_title — Filters the post title as WordPress does in `get_the_title` to apply the password-protected prefix in the context of AJAX requests.
- filter_the_title_display — Filter the display of the_title for password protected events, venues, and organizers.
- get_path — Determines the Path for the PHP file to be used as the main template For Page base template setting it will select from theme or child theme
- manage_sensitive_info — Add/remove filters to hide/show sensitive event info on password protected posts