/** * Unhook all the hooks set up on this view * */ protected function unhook() { parent::unhook(); remove_filter('post_type_archive_title', '__return_false', 10); if (!empty($this->events_in_month)) { remove_filter('tribe_events_month_has_events', array($this, 'has_events')); } }
/** * Unhook all the hooks set up on this view * * @return void **/ protected function unhook() { parent::unhook(); remove_filter('post_type_archive_title', '__return_false', 10); }