mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
https://github.com/strangerstudios/pmpro-snippets-library/blob/dev/checkout/customize-membership-confirmation-message.php
14 lines
389 B
Text
14 lines
389 B
Text
// remove the default confirmation text
|
|
remove_filter( 'pmpro_confirmation_message', 'pmpro_pmpro_confirmation_message' );
|
|
|
|
// add new confirmation text
|
|
function my_pmpro_confirmation_message( $message ) {
|
|
|
|
$message = '';
|
|
|
|
$message .= '<p>This is a new confirmation message.</p>';
|
|
|
|
return $message;
|
|
|
|
}
|
|
add_filter( 'pmpro_confirmation_message', 'my_pmpro_confirmation_message', 10, 1 );
|