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


Show Hooks and Filters in:


pmpro_delete_discount_code

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


pmpro_discountcodes_extra_cols_body

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


pmpro_discountcodes_extra_cols_header

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


pmpro_discount_code_after_level_settings

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


pmpro_discount_code_after_settings

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


pmpro_save_discount_code

Action Hook: Execute custom code after saving a discount code.


pmpro_save_discount_code_level

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