Plugin Planet

Premium WordPress Plugins

USP Pro makes it easy to send email alerts when posts are submitted, approved, and/or denied. This quick tutorial explains how to customize the email alerts with post content and other information.

Visit USP Admin settings, then locate the settings that you would like to customize:

Alerts for Admins

  • Email Alerts for Admin > Email Message for Submissions
  • Email Alerts for Admin > Email Message for Approvals
  • Email Alerts for Admin > Email Message for Denied Posts
  • Email Alerts for Admin > Email Message for Scheduled Posts

Alerts for Users

  • Email Alerts for User > Email Message for Submissions
  • Email Alerts for User > Email Message for Approvals
  • Email Alerts for User > Email Message for Denied Posts
  • Email Alerts for User > Email Message for Scheduled Posts

For any of these, you may customize the alert message using any of the following Email Shortcodes (aka shortcut variables):

blog url              = %%blog_url%%	
blog name             = %%blog_name%%
admin name            = %%admin_name%%
admin email           = %%admin_email%%
user name             = %%user_name%%
user email            = %%user_email%%
post title            = %%post_title%%
post date             = %%post_date%%
post url              = %%post_url%%
post categories       = %%post_cats%%
post tags             = %%post_tags%%
post id               = %%post_id%%
post content          = %%post_content%%
custom fields         = %%post_custom%%
specific custom field = %%__custom-field-key%%
post submitted date   = %%post_submitted_date%%
post scheduled date   = %%post_scheduled_date%%
ip address            = %%ip_address%%

Just add any of these variables to any email-alert message and customize as needed. You can see the results by submitting a test post.

Additionally, two USP Filter Hooks are provided if you need to add a custom alert Shortcode:

usp_alert_shortcut_defined_pattern
usp_alert_shortcut_defined_replacement

Related