Defender Whitelisting

I want to know how I can white-label Defender report emails. I mean which file to edit in the file and how to add my own logo.

  • Predrag Dubajic

    Hey Zac,

    I'm afraid that there's currently no easy way of completely whitelabeling the emails.

    Some changes can be made from the plugin directly, for example, if you go to Defender > File Scanning > Settings panel and edit "Email templates" you can change the content of the email.

    Some other stuff, like main title "Protected by Defender" is included in translation files so you can use those to make the changes without editing files

    And if you wish to completely customize the emails you will need to edit plugin files as Rupok mentioned in chat, even though this is not suggested because the changes will be overwritten by the plugin update.
    If you still want to do this here's a list of email files:
    /wp-defender/app/module/audit/view/email_template.php
    /wp-defender/app/module/ip-lockout/view/emails/404-lockout.php
    /wp-defender/app/module/ip-lockout/view/emails/login-lockout.php
    /wp-defender/app/module/ip-lockout/view/emails/login-username-ban.php
    /wp-defender/app/module/ip-lockout/view/emails/report.php
    /wp-defender/app/module/scan/view/email-template.php

    We are also discussing with the developer about adding more whitelabeling options directly in plugin settings.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.