/**
  * Set up hooks for this template
  *
  * @return void
  * @since 3.0
  **/
 public function hooks()
 {
     parent::hooks();
     // Remove the comments template
     add_filter('comments_template', array($this, 'remove_comments_template'));
     add_action('tribe_events_single_venue_before_upcoming_events', array($this, 'setup_upcoming_events'));
     add_filter('tribe_get_template_part_templates', array($this, 'remove_list_navigation'), 10, 3);
 }
Example #2
0
 /**
  * Set up hooks for week view
  *
  * @return void
  * */
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'), 10, 2);
     add_action('tribe_events_week_pre_setup_event', array($this, 'manage_sensitive_info'));
     add_filter('tribe_pre_get_view', array($this, 'setup_loop'));
     add_filter('tribe_pre_get_view', array($this, 'set_week_days'));
 }
Example #3
0
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
 }
Example #4
0
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 protected function hooks()
 {
     parent::hooks();
     add_action('tribe_events_single_organizer_before_upcoming_events', array($this, 'setup_upcoming_events'));
     add_filter('tribe_get_template_part_templates', array($this, 'remove_list_navigation'), 10, 3);
 }
Example #5
0
 /**
  * Set up hooks for this template
  *
  * @return void
  * @since 3.0
  **/
 public function hooks()
 {
     parent::hooks();
     add_filter('tribe_get_ical_link', array($this, 'ical_link'), 20, 1);
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
 }
Example #6
0
 /**
  * Set up hooks for map view
  *
  * @return void
  * @since 3.0
  **/
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
     add_action('tribe_events_list_before_the_event_title', array($this, 'add_event_distance'));
 }