protected function hooks() { parent::hooks(); if (tribe_is_showing_all()) { add_filter('tribe_get_template_part_path_modules/bar.php', '__return_false'); } }
/** * 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); }
/** * 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')); }
/** * 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')); }
public function hooks() { parent::hooks(); // google data markup add_action('wp_head', array($this, 'google_data_markup')); }