Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipokkel/46dc3c0af626e054346e54ad7162be22 to your computer and use it in GitHub Desktop.
Save ipokkel/46dc3c0af626e054346e54ad7162be22 to your computer and use it in GitHub Desktop.
Example code recipe to modify the PMPro confirmation message.
<?php
/**
* This recipe is an example of customizing the confirmation message displayed on
* the PMPro confirmation page after checkout.
*
* 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.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_confirmation_message( $message ) {
$message = str_replace( 'Below are details about your membership account', 'Below are details about your enrollment', $message );
return $message;
}
add_filter( 'pmpro_confirmation_message', 'my_pmpro_confirmation_message', 20, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment