• Hello.

    When I try to replace “From name” through wp_mail_from_name filter, it doesn’t work. I’m using PostMailer and I have the option “Prevent plugins and themes from changing this” disabled. (see setup on image below)
    https://prnt.sc/1t0lfnb

    The problem/solution seems to be there:
    post-smtp/Postman/PostmanOptions::510

    It’s calling the email function, not name function.

    Find:
    return $this->isPluginSenderEmailEnforced();

    Replace to:
    return $this->isPluginSenderNameEnforced();

    • This topic was modified 3 years, 6 months ago by Victor Mattos.
  • The topic ‘I can’t replace “From name” via filter (solution included)’ is closed to new replies.