shopp_download_keygen

called when generating download key for product download.

add_action('shopp_download_keygen', [callback]);

@param Purchased $Purchased  a reference to the order's purchased line item object that the download is attached to.

Description

Runs when generating the download key used in the download link to secure the product file and link it directly to the purchase. Useful for generating product-specific keys for software products based on order information. See Parameters passed to the ‘[callback]’.

Example

add_action('shopp_download_keygen', 'my_function');
function my_function ( $Purchased ) {
// do stuff
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar