I can’t replace “From name” via filter (solution included)
-
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/1t0lfnbThe problem/solution seems to be there:
post-smtp/Postman/PostmanOptions::510It’s calling the email function, not name function.
Find:
return $this->isPluginSenderEmailEnforced();
Replace to:
return $this->isPluginSenderNameEnforced();
- The topic ‘I can’t replace “From name” via filter (solution included)’ is closed to new replies.