示例#1
0
 /**
  * Constructor adds action and filter
  */
 public function __construct()
 {
     self::$instance_view = $this;
     // just in case this was not set by an old autoload.php
     global $swifty_lib_dir;
     if (!isset($swifty_lib_dir)) {
         $swifty_lib_dir = dirname(plugin_dir_path(__FILE__));
     }
     // allow every plugin to get to the initialization part, all plugins and theme should be loaded then
     add_action('after_setup_theme', array($this, 'action_after_setup_theme'));
     add_filter('swifty_SS2_hosting_name', array($this, 'filter_swifty_SS2_hosting_name'));
 }