Browse the database of various hooks and filters available in Paid Memberships Pro. Select a hook or filter to view detailed information, examples, and related articles with code recipes.


Show Action and Filter Hooks in:

Action Hook: 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.

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