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


apply_filters( "pmpro_discount_code_level", object $pmpro_level, int $discount_code_id );

Parameters

$pmpro_level
object;
$discount_code_id
int;

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/preheaders/checkout.php

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/services/applydiscountcode.php

View in Source Code