send_headers hook, request status and HTTP headers
In my plugin I’m working with the send_headers hook and am beating my head against a wall trying to effectively trap the HTTP response sent *back to the requestor*.
Looking at WP->send_headers the status is captured, but then passed to status_header() but not included in $headers, hence not in the returned array of data… But I may just be going pie-eyed from frustration and general fatigue 😀
So my question is, how does a meer mortal capture the 200, 301 & 404s that are sent back to the requestor so my plugin function that is hooked in can act conditionally on the result?
- The topic ‘send_headers hook, request status and HTTP headers’ is closed to new replies.