public static function run()
 {
     $instance = self::getInstance();
     //get option
     self::$option = get_option('shSetting');
     add_action('admin_menu', function () use($instance) {
         add_menu_page('Setting Demo', 'Demo', 'manage_options', 'shsetting', [$instance, 'createSettingPage']);
     });
     add_action('admin_init', [$instance, 'setupSetting']);
     return $instance;
 }
Esempio n. 2
0
 public static function run()
 {
     $instance = self::getInstance();
     SHShoutboxMessage::run();
     SHShoutboxUser::run();
     self::checkUpdate();
     SHShoutboxWidget::run();
     SHShoutboxShortcode::run();
     SHShoutboxSetting::run();
     return $instance;
 }