Timeline for WP function/filter for modifying http headers?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 22, 2011 at 13:17 | vote | accept | mikkelbreum | ||
Jun 17, 2011 at 18:49 | comment | added | Otto | header() is the only way. However, it does have a second parameter that will let you replace existing headers instead of adding to them. See php.net/manual/en/function.header.php | |
Jun 16, 2011 at 16:04 | comment | added | mikkelbreum | good point regarding the hook, but apart from that, is calling the 'raw' header() function (using the right hook) the correct way, or is there a wp wrapper that should be used for this? Calling header directly only allows for adding to the headers, not modifying them, like it would be possible with a filter (like when you want to manipulate the body class) | |
Jun 16, 2011 at 15:54 | history | answered | Otto | CC BY-SA 3.0 |