shopp_{module-classname}_loaded

dynamic action called on the load of each addon module.

add_action('shopp_{module-classname}_loaded', [callback]);

Description

This is a dynamic/variable action that runs when the Shopp module loader loads each properly created add-on module for Shopp. This could be a payment gateway, shipping calculator, or file storage engine. module-classname is replaced with the lower-case class name of the addon module (retrieved from the add-on header).

Examples

add_action('shopp_fedexrates_loaded', 'my_function');
function my_function () {
// do stuff after fedex rates module is loaded
}

add_action('shopp_shipwire_loaded', 'my_function');
function my_function () {
// do stuff after shipwire module is loaded
}

add_action('shopp_paypalpro_loaded', 'my_function');
function my_function () {
// do stuff after paypal pro module is loaded
}

add_action('shopp_amazons3_loaded', 'my_function');
function my_function () {
// do stuff after amazons3 module is loaded
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar