/**
  * The run() method.
  *
  * This will initialize the plugin on the 'after_setup_theme' action.
  *
  * @internal
  * @since 0.5.0
  * @param array $args array of class arguments (passed by the plugin utility class)
  */
 protected function run()
 {
     FieldManager::init();
     WidgetHandler::instance();
     // use after_setup_theme action so it is initialized as soon as possible, but also so that both plugins and themes can use the action
     add_action('after_setup_theme', array($this, 'init'), 5);
     add_filter('wpwd_widget_validated', array($this, 'widget_validated'), 10, 2);
     add_filter('wpwd_section_validated', array($this, 'section_validated'), 10, 2);
 }
 /**
  * The run() method.
  *
  * This will initialize the plugin on the 'after_setup_theme' action.
  * If we are currently in the WordPress admin area, the WPCD\Admin class will be instantiated.
  *
  * @since 0.5.0
  */
 protected function run()
 {
     FieldManager::init();
     Customizer::instance();
     AJAX::instance();
     CSSGenerator::instance();
     // use after_setup_theme action so it is initialized as soon as possible, but also so that both plugins and themes can use the action
     add_action('after_setup_theme', array($this, 'init'), 3);
     add_filter('wpcd_panel_validated', array($this, 'panel_validated'), 10, 2);
     add_filter('wpcd_section_validated', array($this, 'section_validated'), 10, 2);
 }
 /**
  * The run() method.
  *
  * This will initialize the plugin on the 'after_setup_theme' action.
  *
  * @internal
  * @since 0.5.0
  * @param array $args array of class arguments (passed by the plugin utility class)
  */
 protected function run()
 {
     FieldManager::init();
     General::instance();
     if (is_admin()) {
         Admin::instance();
     }
     // use after_setup_theme action so it is initialized as soon as possible, but also so that both plugins and themes can use the action
     add_action('after_setup_theme', array($this, 'init'), 1);
     add_filter('wpdlib_menu_validated', array($this, 'menu_validated'), 10, 2);
     add_filter('wpod_screen_validated', array($this, 'screen_validated'), 10, 2);
     add_filter('wpod_tab_validated', array($this, 'tab_validated'), 10, 2);
     add_filter('wpod_section_validated', array($this, 'section_validated'), 10, 2);
 }