Paid Memberships Pro includes a default message on the membership confirmation page. As a site owner, you may want to display a custom confirmation message to your members based on the membership level they are registering for.
This guide shows you how to override the default confirmation message entirely using a custom function. Use this when you need full control over the message content beyond what the admin settings allow.

Understanding the Code Recipe
This code replaces the default membership confirmation message shown after a successful registration via our Paid Memberships Pro plugin.
It uses the pmpro_confirmation_message
filter, which allows you to replace the message entirely. This filter has two parameters:
$confirmation_message
: The incoming value of the confirmation message to be displayed.$pmpro_invoice
: The MemberOrder object that is displayed for the membership confirmation.

About the Code Recipe
This code returns your custom message on our Paid Memberships Pro confirmation page after registration on any of your membership levels.
Before implementing this code recipe:
- Replace the message on line 16 with your preferred confirmation message for your audience and customers
- Note that messages added via the Memberships > Settings > Levels > Edit or Add New Level > Confirmation Message area will be replaced completely by your custom confirmation message
The Code Recipe
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
How to Customize This Code Recipe
You can set up a more creative and fun custom message for your membership confirmation page. Here’s how you can extend this functionality:
- Replace the
$confirmation_message
variable’s value on line 16 with your preferred text tailored for your customers. For example:
$confirmation_message = '<p>Your membership is now active. Our doors are officially open. Look around, make yourself at home, and get ready to enjoy every perk you signed up for.</p><p><strong>Welcome aboard!</strong></p>';
You can use any text or HTML you want in this filter. If you need to pull dynamic information about the order or member, you can get that information from the $pmpro_invoice
object or the $current_user
object.
