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


Show Action and Filter Hooks in:

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.

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.

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.

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

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

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

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