wpsc_pre_load

Located in: wp-shopping-cart-php

Functions that call this hook: load()

Version Introduced: 3.8 or earlier

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

Similar actions:
wpsc_before_init – Note this is the legacy action of wpsc_pre_load, you should use wpsc_pre_load instead of this hook.
wpsc_loaded – This is called once wpec is fully loaded.

Code in context:
[php firstline=”110″ highlight=”115″]
/**
* 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]