Mailster has some internal texts which are used at various locations. By default, you can change them on the Text tab in the settings but if you like a more flexible approach you can simply change them by a hook via the mailster_text
filter.
Add the following snippet to your theme functions.php:
add_filter( 'mailster_text', function( $string, $option, $fallback ) {
switch ( $option ) {
case 'confirmation':
$string = 'Please click on the link in your email confirmation';
break;
}
return $string;
}, 10, 3 );
Each time a text string is needed it runs through this method. If the $option
is the “confirmation” it replaces the initial string with a new one. All other strings are bypassed and do not get changed.
Available Text snippets
Key ($option ) | Default Value |
---|---|
confirmation | Please confirm your subscription! |
success | Thanks for your interest! |
error | Following fields are missing or incorrect |
unsubscribe | You have successfully unsubscribed! |
unsubscribeerror | An error occurred! Please try again later! |
profile_update | Profile updated! |
newsletter_signup | Sign up to our newsletter |
email | |
firstname | First Name |
lastname | Last Name |
lists | Lists |
submitbutton | Subscribe |
profilebutton | Update Profile |
unsubscribebutton | Yes, unsubscribe me |
unsubscribelink | unsubscribe |
webversion | webversion |
forward | forward to a friend |
profile | update profile |
already_registered | You are already registered |
new_confirmation_sent | A new confirmation message has been sent |
enter_email | Please enter your email address |