How to customize NinjaFirewall WP/WP+ Edition email notifications.
NinjaFirewall WP/WP+ Edition 4.7.2版本起支持自定义邮件通知主题和内容。免费版模板位于`/lib/`文件夹中,付费版则位于`/nfwplus/lib/`文件夹中。部分模板支持国际化。用户可将模板复制到`wp-content/nfwlog/`文件夹后编辑使用。 2025-3-30 05:18:21 Author: blog.nintechnet.com(查看原文) 阅读量:10 收藏

Since version 4.7.2, you can customize the subject and body of all email notifications sent by NinjaFirewall WP/WP+ Edition.

NinjaFirewall WP Edition (free version)

You will find the two templates inside the plugin’s /lib/ folder:

  • wp-content/plugins/ninjafirewall/lib/mail_template_firewall.php: it includes notifications sent by the firewall before WordPress loads. As such, internationalization is not available for those strings.
  • wp-content/plugins/ninjafirewall/lib/mail_template_plugin.php: it includes notifications sent by the plugin part of firewall and internationalization is available for those strings.

NinjaFirewall WP+ Edition (premium version)

You will find the two templates inside the plugin’s /lib/ folder, with slightly different names:

  • wp-content/plugins/nfwplus/lib/mail_template_firewall_pro.php: it includes notifications sent by the firewall before WordPress loads. As such, internationalization is not available for those strings.
  • wp-content/plugins/nfwplus/lib/mail_template_plugin_pro.php: it includes notifications sent by the plugin part of firewall and internationalization is available for those strings.

To customize them, simply copy the two files into the wp-content/nfwlog/ folder (that’s the firewall log and cache folder) and edit them. NinjaFirewall will detect and load them.

Do not remove the original files: NinjaFirewall will load them first and then will load your customized templates.


文章来源: https://blog.nintechnet.com/how-to-customize-ninjafirewall-wp-wp-edition-email-notifications/
如有侵权请联系:admin#unsafe.sh