In Mailster you can have multiple autoresponders to trigger your campaigns automatically. Some of them have a date or timestamp to get triggered within a certain timeframe. To not go way back to the beginning of time (and to accidentally sent to all your subscribers) Mailster uses a “Grace Period”.
Category: Developer
Extend Mailster even further by coding. This section is for Developers and often requires PHP knowledge.
Encode Tags for Links
If you are using Tags in Mailster you may like to use them in your links as well. Since links must be encoded the content of your tags must be encoded as well.
Dynamic Custom Post Types
Mailster has a powerful tag engine built in where you can dynamically populate your newsletter campaigns. Dynamic Custom Post Types work similarly to regular post types but are not stored in your database but generate content on demand.
Adding Content to your Forms
Mailster forms can be defined and customized via the forms page. You can add additional content via some coding by using the mailster_form filter hook.
Mailster Subscriber Query
Mailster offers an easy way to get your subscribers via segmentation. If you like to get more out of this via some custom coding you can use the Subscriber Query.
Mail Headers in Mailster
Each mail sent with Mailster is technically a multi-part message in MIME format. It contains three sections:
Validating Custom Fields
Mailster gives you the option to define custom fields where you can store additional information of your subscribers. Sometimes you need to verify these values with some custom code.
Get the current subscriber
Sometimes you need the current subscriber on your website. Mailster has some built-in methods to get this information.
Keep certain tags in your campaigns
By default, Mailster will remove all unused tags in the final version of your campaign. To prevent that you can whitelist certain tags with some custom code.
Moving subscribers to different lists
It’s easy to assign subscribers to the list with the UI of Mailster. Just select the subscribers you like to assign and select the option from the drop-down. To get more specific you need to add some custom code to your website.
Changing text snippets
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 Subscribers
You can quickly add subscribers in Mailster with some line of code.
Mailster for Developers
You can check for Mailster with To run your code you should wrap it in the Mailster Closure The Mailster Closure ensures your code gets only executed if Mailster is completely loaded. If Mailster is not installed or activated it will simply be ignored. You can have multiple Mailster Closures in your plugin. Adding new […]
Changelog
Version 4.1.6 2024-11-27 fixed: campaigns cache were not cleared on status change fixed: condition using "have" and "doesn't have" tags returned wrong results fixed: force boolean on some expressions added: '__nextHasNoMarginBottom' to components to prevent deprecated messages in WP 6.7 removed: option to upgrade license from notification updated: dependencies for composer and npm Less use […]