• Is there a way to exclude wp-mail() function from using the overridden email templates.

    e.g WordPress should use the template override for email set by your plugins for its default mail only…but when wp-mail() is individually used in code …it should NOT use the new template (overridden by your plugin) but rather use normal wordpress template

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steve Truman

    (@a3rev)

    @jax09

    You have all of that a bit backwards – WP Email Template does not send any emails – It applies the email template to all mail sent via wp-mail which is the default mail function of WordPress.

    If a plugin sends mail via anything other than wp-mail the template is not applied, if it uses the default wp-mail of WordPress it is applied – UNLESS you use the plugins options to exclude that email from having the template applied.

    Thread Starter jax09

    (@jax09)

    UNLESS you use the plugins options to exclude that email from having the template applied

    I want plugin to apply the email template to only “admin reset password notification”, for the rest of the emails don’t apply the template.

    Thread Starter jax09

    (@jax09)

    Nor it should be applied when wp-mail() function is used elsewhere in the code.

    Thanks for reaching out, appreciate the help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excluding wp-mail(in code) from using new email template’ is closed to new replies.