public static function get_instance() { if (!self::$instance) { self::$instance = new WPSC_Settings(); } return self::$instance; }
function wpsc_theme_engine_v2_activate() { $path = WPSC_FILE_PATH . '/wpsc-components/theme-engine-v2'; require_once $path . '/core.php'; _wpsc_te_v2_includes(); wpsc_register_post_types(); flush_rewrite_rules(true); update_option('transact_url', wpsc_get_checkout_url('results')); WPSC_Settings::get_instance(); do_action('wpsc_theme_engine_v2_activate'); }
/** * When the theme engine is activated, setup the options. * * Action hooks: 'wpsc_theme_engine_v2_activate', 'add_option_rewrite_rules' * * @since 0.1 * @access private * @uses WPSC_Settings::_action_setup() */ function _wpsc_te2_action_setup_settings() { $wpsc_settings = WPSC_Settings::get_instance(); $wpsc_settings->_action_setup(); }