/**
  * Plugin Loader init
  * @static
  * @since 1.0
  */
 public static function init()
 {
     global $PostPlannerSettings;
     self::check_for_upgrade();
     $general_options = get_option('PostPlanner_general') ? get_option('PostPlanner_general') : array();
     $advanced_options = get_option('PostPlanner_advanced') ? get_option('PostPlanner_advanced') : array();
     self::$settings = array_merge($general_options, $advanced_options);
     self::$statuses = self::setup_statuses();
     if (PostPlanner_Loader::check_plugin_access() == false) {
         return;
     }
     if (PostPlanner_Loader::$settings['checklist'] == 1) {
         self::$checklist = get_option('PostPlanner_checklist');
     }
     self::include_files();
     if (!post_type_exists('planner')) {
         self::setup_custom_post_type();
     }
     if (!taxonomy_exists('plannercategories')) {
         self::create_taxonomies();
     }
     $PostPlannerSettings = new PostPlanner_Settings();
     if (!defined('PP_CTDL')) {
         if (in_array('cleverness-to-do-list/cleverness-to-do-list.php', apply_filters('active_plugins', get_option('active_plugins'))) && PostPlanner_Loader::$settings['ctdl'] == 1) {
             define('PP_CTDL', true);
         } else {
             define('PP_CTDL', false);
         }
     }
     self::setup_metaboxes();
     self::call_wp_hooks();
     new PostPlanner_Dashboard_Widget();
 }