How can I change the 'from' email address for the Shield Security plugin?

(Please do not confuse this with the 'To' email.  There is an option in the Shield plugin to change this directly.)

By default, the plugin will send using the WordPress default 'From' address. It takes the form:

If you want to change this, we have provided a WordPress filter that you can use:

  • To change the 'from email', use the filter: 'icwp_shield_from_email' and return the email address you wish to use.  Note that this email you supply will be validated and if it's not a valid email address, it will be rejected.
  • To change the 'from name', use the filter: 'icwp_shield_from_email_name' and return the name you wish to to use