/** * Upgrade live status system. * * @static */ static function plugin_install() { $blogging_tools = new LivePress_Blogging_Tools(); $blogging_tools->upgrade_live_status_system(); // set default value of sharingUI if not set $livepress = get_option(self::$options_name); if (!array_key_exists('sharing_ui', $livepress)) { $livepress['sharing_ui'] = 'display'; update_option(self::$options_name, $livepress); } if (!array_key_exists('show', $livepress)) { $livepress['show'] = array('AUTHOR', 'TIME', 'HEADER'); update_option(self::$options_name, $livepress); } }
/** * Upgrade live status system. * * @static */ static function plugin_install() { $blogging_tools = new LivePress_Blogging_Tools(); $blogging_tools->upgrade_live_status_system(); }