wpsc_includes

Located in: wp-shopping-cart-php

Functions that call this hook:  includes()

Version Introduced: 3.8 or earlier

Description: This hook is used to add any additional file includes.

Code in context:
[php firstline=”98″ highlight=”107″]
/**
* Include the rest of WPEC’s files
*/
function includes() {
require_once( WPSC_FILE_PATH . ‘/wpsc-core/wpsc-functions.php’ );
require_once( WPSC_FILE_PATH . ‘/wpsc-core/wpsc-installer.php’ );
require_once( WPSC_FILE_PATH . ‘/wpsc-core/wpsc-includes.php’ );

// Any additional file includes can hook in here
do_action( ‘wpsc_includes’ );
}

[/php]

Example use:

[php]
add_action(‘wpsc_includes’, ‘my_file_includes’);

function my_file_includes(){

require_once( MYPLUGIN_FILE_PATH . ‘/myplugin-core/functions.php’ );

} [/php]