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.
do_action( 'pmpro_applydiscountcode_return_js', string $discount_code, int $discount_code_id, int $level_id, level $code_level ); |
Parameters
- $discount_code
- string
- $discount_code_id
- int
- $level_id
- int
- $code_level
- level
Source
File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/services/applydiscountcode.php
View in Source CodeRelated Articles and Recipes
Display the original and discounted price when a discount code is applied at checkout. By PMPro Team