Since 1.7.10

This hook fires inside of the JS script tag returned by the applydiscountcode.php service. The hook can be used to do other PHP or JavaScript actions before sending the results of the discount code AJAX call to the client browser.


This filter modifies the level  given by a discount code.  It passes the level object and the discount code ID.