Timeline for Why won't wp_mail() let me set the From: header when plain old PHP mail() will?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 13, 2019 at 17:19 | history | edited | butlerblog | CC BY-SA 4.0 |
added 3 characters in body
|
Dec 25, 2016 at 16:03 | comment | added | Ion |
As of the current version, it is totally acceptable to use get_bloginfo('wpurl') : This returns site_url() already. get_bloginfo('home') and get_bloginfo('siteurl') are deprecated. developer.wordpress.org/reference/functions/get_bloginfo
|
|
Apr 26, 2011 at 12:45 | comment | added | helenhousandi | yes, it's that plugin's bad for not giving me an option not to use those filters, but luckily commenting out the filters worked out for my case. I'll probably ask around to see which is better to use in the future - a per-use filter or the more familiar headers. The headers are probably more efficient, but then why are those filters there? Always more questions :) | |
Apr 16, 2011 at 13:36 | comment | added | Scott | @helenyhou - +1 for reminding me about site_url(). I've also changed my plugin to use filters rather than using $headers. Plus I've made sure to remove those filters once I've sent the email so not to get in the way of anything else :) | |
Apr 16, 2011 at 8:59 | comment | added | Scott | But then surely that plugin is bad for not clearing up after itself.... not alot you can do about it though :( in that case I better change my plugin to use filter just in case another plugin has broken it. | |
Apr 16, 2011 at 4:14 | comment | added | helenhousandi |
I did not set the filter, another plugin did. The filter takes precedence over the header. Also, you really should use site_url() instead of get_bloginfo('wpurl')
|
|
Apr 15, 2011 at 15:29 | history | answered | Scott | CC BY-SA 3.0 |