pmpro_discount_code_after_level_settings

Use this hook to add extra fields or execute custom code after the level settings when editing discount codes.


do_action("pmpro_discount_code_after_level_settings", string $edit, object $level);

pmpro_discountcodes_extra_cols_header

Use the pmpro_discountcodes_extra_cols_body and pmpro_discountcodes_extra_cols_header hooks to add extra columns  to the discount codes page. This hook accepts the header HTML code of the extra column.


do_action("pmpro_discountcodes_extra_cols_header", string $codes);

pmpro_discountcodes_extra_cols_body

Use the pmpro_discountcodes_extra_cols_body and pmpro_discountcodes_extra_cols_header hooks to add extra columns  to the discount codes page. This hook accepts the body HTML code of the extra column.


do_action("pmpro_discountcodes_extra_cols_body", string $code);

pmpro_save_discount_code_level

Executes custom code after saving a discount code’s level settings.


do_action("pmpro_save_discount_code_level", bool $edit, int $level_id);

pmpro_save_discount_code

Execute custom code after saving a discount code.


do_action("pmpro_save_discount_code", $saveid)

pmpro_delete_discount_code

Use this hook to execute custom code just  before  a discount code is deleted. This passes the ID of the discount code to be deleted.


do_action("pmpro_delete_discount_code", int $delete);

pmpro_discount_code_after_settings

Use this hook to add extra fields or execute custom code after the settings when editing discount codes.


do_action("pmpro_discount_code_after_settings", $edit);