public static function run() { $instance = self::getInstance(); //add menu self::$option = get_option('qhSetting'); add_action('admin_menu', function () use($instance) { add_menu_page('QH Setting', 'QH Demo', 'manage_options', 'qhsetting', array($instance, 'createSettingPage')); }); add_action('admin_init', array($instance, 'setupSetting')); return $instance; }
public static function run() { $instance = self::getInstance(); //khoi tao api QHShoutboxMessage::run(); QHShoutboxUser::run(); self::checkUpdate(); QHShoutboxWidget::run(); QHShoutboxShortCode::run(); QHShoutboxSetting::run(); return $instance; }