Пример #1
0
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_get_template_part_templates', array($this, 'remove_list_navigation'), 10, 3);
     // Print JSON-LD markup on the `wp_head`
     add_action('wp_head', array(Tribe__Events__JSON_LD__Organizer::instance(), 'markup'));
 }
 /**
  * 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);
     // google data markup
     add_action('wp_head', array($this, 'google_data_markup'));
 }
Пример #3
0
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 public function hooks()
 {
     parent::hooks();
     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);
     // Print JSON-LD markup on the `wp_head`
     add_action('wp_head', array(Tribe__Events__JSON_LD__Venue::instance(), 'markup'));
 }
Пример #4
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_action('tribe_pre_get_template_part_pro/week/loop', array($this, 'rewind_days'));
     add_action('tribe_post_get_template_part_pro/week/single-event', array($this, 'set_previous_event'), 10, 3);
     add_action('tribe_pre_get_template_part_pro/week/single-event', array($this, 'set_global_post'), 10, 3);
 }
 /**
  * Set up hooks for map view
  *
  * @return void
  **/
 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'));
 }
Пример #6
0
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 public function hooks()
 {
     parent::hooks();
     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);
 }
Пример #7
0
 protected function hooks()
 {
     parent::hooks();
     add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
 }