How to apply Sendgrid categories to WordPress emails

What are Sendgrid Email Categories Creating categories for different kinds of emails sent through sendgrid is quite beneficial. It allows you to track emails based on each category i.e. it allows you to tag your emails by topics. e.g. it would be nice to know how many user registration emails actually were delivered, how many people requested password resets, etc For instance emails sent through wordpress can be categorised as User Registration Password Reset Newsletter, etc How to add Sendgrid categories As per the sendgrid documentation You can add categories to the X-SMTPAPI header of the emails you send via SendGrid. This will allow you to track emails based on your own categorization system. In case of wordpress emails here are the steps to follow Install the Wordpress Sengrid plugin: Since the version 1.6.9 this plugin allows to add categories in the email headers. add the category headers to the wp_mail function as shown below How to add category headers to the wp_mail function [crayon-59c673d698fbc706586858/] The above headers can be added to your custom plugins where you define your own wp_mail...
Read More

User Role Editor plugin – Critical Security vulnerability

If you are running User Role Editor plugin version 4.24 or older, immediately upgrade to the latest version 4.25 In version 4.24 and older the vulnerability allows any registered user to gain administrator access. Please see more details about the vulnerability which was exposed by wordfence, a popular security plugin for wordpress. The plugin used a function to check if a certain user has access to edit another user. But this function was not being used properly which created the vulnerability. The author was checking if users have access to edit another user using the ‘current_user_can’ function and checking for the ‘edit_user’ (without an ‘s’ on the end) capability on a specific user ID.   ...
Read More