Mailster offers a huge set of capabilities you can use to limit the access to your WordPress users. This is useful if you like to have one person create your campaigns but prevent them from actually sending them.
You can define each capability for each role your website offers. By default only three roles are available: Administrator, Editor, Author, Contributor, and Subscriber.
To create custom user roles with specific capabilities, we recommend using WordPress plugins like “User Role Editor” or “Members”. These plugins provide an easy way to add and manage new roles.
You can change the capability of each role in the settings at Newsletter => Settings => Capabilities.
Check for certain capabilities in your code
To check if the current user has certain capabilities you can use the currect_user_can
method:
if ( ! current_user_can( 'mailster_edit_subscribers' ) ) {
// run code if the current user cannot edit subscribers.
}
Capabilities and their Meaning in Mailster
Here’s a list of all the capabilities Mailster is using.
Name | Capability | Description |
---|---|---|
Campaign Management | ||
Read Campaign | read_newsletter | Allows viewing of campaign content and details |
Edit Campaigns | edit_newsletters | Allows creating and editing new campaigns |
Edit Campaign | edit_newsletter | Allows editing of existing campaigns |
Edit Others Campaigns | edit_others_newsletters | Allows editing of campaigns created by other users |
Edit Private Campaigns | edit_private_newsletters | Allows editing of private/draft campaigns |
Edit Published Campaigns | edit_published_newsletters | Allows editing of published campaigns |
Send Campaigns | publish_newsletters | Allows sending campaigns to subscribers |
Read Private Campaigns | read_private_newsletters | Allows viewing of private/draft campaigns |
Delete Campaigns | delete_newsletters | Allows deletion of campaigns |
Delete Private Campaigns | delete_private_newsletters | Allows deletion of private/draft campaigns |
Delete Published Campaigns | delete_published_newsletters | Allows deletion of published campaigns |
Delete Others Campaigns | delete_others_newsletters | Allows deletion of campaigns created by other users |
Duplicate Campaigns | duplicate_newsletters | Allows creating copies of existing campaigns |
Duplicate Others Campaigns | duplicate_others_newsletters | Allows creating copies of campaigns created by other users |
Edit Autoresponders | mailster_edit_autoresponders | Allows creating and editing automated email sequences |
Edit Others Autoresponders | mailster_edit_others_autoresponders | Allows editing of autoresponders created by other users |
Autoresponder Management | ||
View Workflow | read_mailster-workflow | Allows viewing of workflow configurations |
Edit Workflows | edit_mailster-workflows | Allows creating and editing workflow configurations |
Edit Workflow | edit_mailster-workflow | Allows editing of existing workflow configurations |
Delete Workflows | delete_mailster-workflow | Allows deletion of workflow configurations |
Edit Others Workflows | edit_others_mailster-workflows | Allows editing of workflows created by other users |
Activate Workflows | publish_mailster-workflows | Allows activating and deactivating workflow configurations |
View Inactive Workflows | read_private_mailster-workflows | Allows viewing of inactive workflow configurations |
Delete Others Workflows | delete_others_mailster-workflows | Allows deletion of workflows created by other users |
Duplicate Workflows | duplicate_mailster-workflows | Allows creating copies of existing workflow configurations |
Duplicate Others Workflows | duplicate_others_mailster-workflows | Allows creating copies of workflows created by other users |
Form Management | ||
View Form | read_mailster-form | Allows viewing of form configurations |
Edit Forms | edit_mailster-forms | Allows creating and editing form configurations |
Edit Form | edit_mailster-form | Allows editing of existing form configurations |
Delete Forms | delete_mailster-form | Allows deletion of form configurations |
Edit Others Forms | edit_others_mailster-forms | Allows editing of forms created by other users |
Activate Forms | publish_mailster-forms | Allows activating and deactivating form configurations |
View Private Forms | read_private_mailster-forms | Allows viewing of private form configurations |
Delete Others Forms | delete_others_mailster-forms | Allows deletion of forms created by other users |
Duplicate Forms | duplicate_mailster-forms | Allows creating copies of existing form configurations |
Duplicate Others Forms | duplicate_others_mailster-forms | Allows creating copies of forms created by other users |
Change Template | mailster_change_template | Allows changing email template designs |
Save Template | mailster_save_template | Allows saving custom email template designs |
See Codeview | mailster_see_codeview | Allows viewing and editing HTML code of email templates |
Change Text Version | mailster_change_plaintext | Allows modifying plain text versions of emails |
Subscriber Management | ||
Edit Subscribers | mailster_edit_subscribers | Allows editing subscriber information |
Add Subscribers | mailster_add_subscribers | Allows adding new subscribers to the system |
Delete Subscribers | mailster_delete_subscribers | Allows removing subscribers from the system |
Restore Subscribers | mailster_restore_subscribers | Allows restoring previously deleted subscribers |
Bulk Subscriber Management | ||
Manage Subscribers | mailster_manage_subscribers | Allows comprehensive subscriber management |
Import Subscribers | mailster_import_subscribers | Allows importing subscribers from external sources |
Import WordPress Users | mailster_import_wordpress_users | Allows importing WordPress users as subscribers |
Export Subscribers | mailster_export_subscribers | Allows exporting subscriber data to external files |
Bulk Delete Subscribers | mailster_bulk_delete_subscribers | Allows mass deletion of multiple subscribers |
List Management | ||
Manage Lists | mailster_manage_lists | Allows comprehensive subscriber list management |
Add Lists | mailster_add_lists | Allows creating new subscriber lists |
Edit Lists | mailster_edit_lists | Allows modifying existing subscriber lists |
Delete Lists | mailster_delete_lists | Allows removing subscriber lists |
Tag Management | ||
Add Tags | mailster_add_tags | Allows creating new subscriber tags |
Edit Tags | mailster_edit_tags | Allows modifying existing subscriber tags |
Delete Tags | mailster_delete_tags | Allows removing subscriber tags |
Template Management | ||
Manage Templates | mailster_manage_templates | Allows comprehensive email template management |
Edit Templates | mailster_edit_templates | Allows modifying email template designs |
Delete Templates | mailster_delete_templates | Allows removing email templates |
Upload Templates | mailster_upload_templates | Allows uploading new email templates |
Update Templates | mailster_update_templates | Allows updating email templates to newer versions |
Other | ||
Manage Addons | mailster_manage_addons | Allows managing Mailster addon installations |
View Logs | mailster_view_logs | Allows viewing system logs and error reports |
Access Dashboard | mailster_dashboard | Allows accessing the Mailster dashboard |
See Dashboard Widget | mailster_dashboard_widget | Allows viewing Mailster widgets in the WordPress dashboard |
Manage Capabilities | mailster_manage_capabilities | Allows managing user role capabilities and permissions |
Manage Licenses | mailster_manage_licenses | Allows managing Mailster and addon licenses |
Edit Forms (legacy) | mailster_edit_forms | Allows editing of legacy form configurations |
Add Forms (legacy) | mailster_add_forms | Allows creating new legacy form configurations |
Delete Forms (legacy) | mailster_delete_forms | Allows removing legacy form configurations |