Пример #1
0
 protected function hooks()
 {
     parent::hooks();
     if (tribe_is_showing_all()) {
         add_filter('tribe_get_template_part_path_modules/bar.php', '__return_false');
     }
 }
Пример #2
0
 public function hooks()
 {
     parent::hooks();
     add_action('embed_head', array($this, 'embed_head'));
 }
 /**
  * Add any special hooks for this view
  *
  */
 protected function hooks()
 {
     parent::hooks();
     // Since we set is_post_type_archive to true on month view, this prevents 'Events' from being added to the page title
     add_filter('post_type_archive_title', '__return_false', 10);
     if (!empty($this->events_in_month)) {
         add_filter('tribe_events_month_has_events', array($this, 'has_events'));
     }
 }
Пример #4
0
 /**
  * Add any special hooks for this view
  *
  * @return void
  **/
 protected function hooks()
 {
     parent::hooks();
     // Since we set is_post_type_archive to true on month view, this prevents 'Events' from being added to the page title
     add_filter('post_type_archive_title', '__return_false', 10);
 }
Пример #5
0
 public function hooks()
 {
     parent::hooks();
     // google data markup
     add_action('wp_head', array($this, 'google_data_markup'));
 }
Пример #6
0
 /**
  * Set up hooks for this template
  *
  * @return void
  **/
 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'));
 }
Пример #7
0
 public function hooks()
 {
     parent::hooks();
     // Print JSON-LD markup on the `wp_head`
     add_action('wp_head', array(Tribe__Events__JSON_LD__Event::instance(), 'markup'));
 }
 /**
  * Set up hooks for this template
  *
  * @return void
  * @since 1.0
  **/
 public function hooks()
 {
     parent::hooks();
     add_filter('tribe_get_events_title', array($this, 'the_title'));
 }