/**
  * Adds the main hooks for the file.
  * 
  * @since 2.0
  */
 protected function __construct()
 {
     parent::__construct();
     # Registers additional post types
     add_action('init', array($this, 'register_post_types'));
     # Overrides the template when needed
     add_filter('template_include', array($this, 'template_include'));
     # Prepends and appends stuff to the content.
     add_filter('the_content', array($this, 'add_fields_to_content'), 2);
     # Alarm for migration
     $option = get_option('upt_2_migrate');
     if ('yes' == $option) {
         # Make sure that the tab exists
         add_filter('uf.ui.settings.tabs', array($this, 'add_migration_tab'));
     } elseif ('no' != $option) {
         update_option('upt_2_migrate', 'no');
     }
 }
 /**
  * Adds the main hooks for the file.
  * 
  * @since 2.0
  */
 protected function __construct()
 {
     parent::__construct();
     # Registers additional taxonomies
     add_action('init', array($this, 'register_taxonomies'), 15);
 }