/Customization /How to add salutation to your subscribers?
Sometimes it’s needed to welcome your subscribers with more friendlier words as “Hello” or “Hi”. In some Countries it’s also common to have different salutation based on the users gender.
If you like to welcome your new subscribers with either “Welcome Mrs. Jackson” or “Welcome Mr. Johnson” you need to get the “Mrs.” or “Mr.” in a custom field.
After you have applied the gender custom field to your form you need some code to add to your theme’s function.php.
Adjust the strings if needed.
Mailster will run this snippet every time you add a new subscriber to your user base and if a gender has been defined it will automatically add it’s appropriate salutation.
If you like to apply this rule to your existing subscribers you have to run a bulk action.
Select your subscribers on the overview page and choose “Verify” from the Bulk Actions Drop Down menu.
If you know how to add a custom dynamic tag you can also add one to your site. This makes it easy to change it in the future as you don’t have to store it in the database.
This way you don’t need the “salutation” custom field from above.