Title: Action before headers are output?
Last modified: August 22, 2016

---

# Action before headers are output?

 *  [fedude](https://wordpress.org/support/users/fedude/)
 * (@fedude)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/)
 * Is there an action I can hook to before any headers are output?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/#post-5211404)
 * There’s a few, but which one you use would most likely depend on what you actually
   want to do.
 *  Thread Starter [fedude](https://wordpress.org/support/users/fedude/)
 * (@fedude)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/#post-5211426)
 * I want to call WP function nocache_headers() to make sure I reload the page every
   time.
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/#post-5211510)
 * I’d think the `init` action might be OK. That’s the first one that comes to mind,
   and should send those headers before anything actually gets done.
 *  Thread Starter [fedude](https://wordpress.org/support/users/fedude/)
 * (@fedude)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/#post-5211516)
 * Thank you. It seems to work for Firefox and Chrome. IE appears to take a minute
   or two before it reloads the page.
 * Thanks a lot.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Action before headers are output?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [fedude](https://wordpress.org/support/users/fedude/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/action-before-headers-are-output/#post-5211516)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
