wpsc_before_init

Located in: wp-shopping-cart-php

Functions that call this hook: load()

Version Introduced: Pre 3.8

Description: This hook is called before the load of WP-e-Commerce begins. Use this hook to load other components from your plugin.

NOTE: This function is a legacy function you should use wpsc_pre_load instead.
Similar actions:
wpsc_pre_load – You should be using this hook instead of wpsc_before_init.
wpsc_loaded – This is called once wpec is fully loaded.

Code in context:
[php firstline=”110″ highlight=”118″]
/**
* Setup the WPEC core
*/
function load() {
// Before setup
do_action( ‘wpsc_pre_load’ );

// Legacy action
do_action( ‘wpsc_before_init’ );

// Setup the core WPEC globals
wpsc_core_setup_globals();

// Setup the core WPEC cart
wpsc_core_setup_cart();

// Load the thumbnail sizes
wpsc_core_load_thumbnail_sizes();

// Load the purchase log statuses
wpsc_core_load_purchase_log_statuses();

// Load unique names and checout form types
wpsc_core_load_checkout_data();

// Load the gateways
wpsc_core_load_gateways();

// Load the shipping modules
wpsc_core_load_shipping_modules();

// Set page title array for important WPSC pages
wpsc_core_load_page_titles();

// WPEC is fully loaded
do_action( ‘wpsc_loaded’ );
}

[/php]