Example #1
0
 public function __construct()
 {
     parent::__construct(dirname(__DIR__) . '/bootstrap.php');
     $this->generate_defines();
     // Register an options page
     self::$options = new Options\OptionsPage(include 'configs/options.php');
     self::$options->register();
     // Add a popup button to the rich editor
     Editor\Editor::add_button(include 'configs/editor.php');
     add_action('admin_enqueue_scripts', array($this, 'register_admin_assets'));
     add_action('wp_enqueue_scripts', array($this, 'register_public_assets'));
     $this->add_filters();
 }
Example #2
0
 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();
 }