How can I change HTTP headers only to posts of a specific category from a plugin
Why it doesn’t work: send_headers hook is fired once the HTTP headers for caching, content etc. have been sent, but before the main query is properly initiated. That’s why in_category() function doesn’t work when you use it in this action hook. Same goes for the wp_headers filter hook. To make it work: You may use … Read more