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:


plugin_locale

Filter Hook: This filter controls the translation template to load for a specific language by using WordPress’s core function get_locale().


pmpro_email_body

Filter Hook: Use this to filter the content of the body of an email sent by PMPro. This filter returns the email body content and the PMProEmail object.


pmpro_email_data

Filter Hook: This filter makes it easier to add variables to edited email templates by passing an array of key-value pairs. Those values can then be used in email templates with the format: !!key!!. This passes the data array and PMProEmail object.


pmpro_email_filter

Filter Hook: Use this to filter the entire PMProEmail object at once. This passes the PMProEmail object.


pmpro_email_headers

Filter Hook: Use this to change the headers of an email sent by PMPro. This hook returns the email headers and the PMProEmail object.


pmpro_email_recipient

Filter Hook: Use this to change the recipient of an email sent by PMPro. This hook returns the recipient  and the PMProEmail object.


pmpro_email_sender

Filter Hook: Use this to change the sender of an email sent by PMPro. This hook returns the sender and the PMProEmail object.


pmpro_email_sender_name

Filter Hook: Use this to change the sender name of an email sent by PMPro. This hook returns the sender name and the PMProEmail object.


pmpro_email_subject

Filter Hook: Use this to change the subject of an email sent by PMPro. This hook returns the subject  and the PMProEmail object.


pmpro_email_template

Filter Hook: Use this to change the template name of an email sent by PMPro. The template name specifies which email template to use for the email body. This hook returns the template name and the PMProEmail object.