public function __construct() { parent::__construct(dirname(__DIR__) . '/bootstrap.php'); $this->generate_defines(); $this->load_classes(); // Register an options page self::$options = new Options\OptionsPage(include 'configs/options/config.php'); self::$options->register(); // Register widgets self::register_widgets(); // Add a popup button to the rich editor Editor\Editor::add_button(include 'configs/editor/config.php'); // Register shortcodes Shortcode::register(); $this->register_assets(); self::check_environment(); }
public static function uninstall($network_wide) { parent::uninstall($network_wide); self::$options->uninstall(); }