Title: Exclude plugin output from Admin section.
Last modified: August 18, 2016

---

# Exclude plugin output from Admin section.

 *  Resolved [mutube](https://wordpress.org/support/users/mutube/)
 * (@mutube)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/exclude-plugin-output-from-admin-section/)
 * Hi folks,
 * I’m working on another plugin, which needs to output direct headers to the browser(
   for the purpose of redirecting). To do this it needs to be called before anything
   is sent, and I’m currently using the `init` action hook to do this.
 * However, this also affects the admin area too – meaning when redirecting is enabled
   it can lock the admin user out.
 * Is there a function check the plugin can use to find out where it’s being called
   from? Or is there an alternate hook that is early enough to send headers, but
   specific to content pages?
 * Thanks,

Viewing 1 replies (of 1 total)

 *  Thread Starter [mutube](https://wordpress.org/support/users/mutube/)
 * (@mutube)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/exclude-plugin-output-from-admin-section/#post-514966)
 * Ah. Its’s `is_admin()` that checks for that. Doesn’t appear to be documented 
   anywhere, but works.

Viewing 1 replies (of 1 total)

The topic ‘Exclude plugin output from Admin section.’ is closed to new replies.

## Tags

 * [action](https://wordpress.org/support/topic-tag/action/)
 * [area](https://wordpress.org/support/topic-tag/area/)
 * [content](https://wordpress.org/support/topic-tag/content/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 1 reply
 * 1 participant
 * Last reply from: [mutube](https://wordpress.org/support/users/mutube/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/exclude-plugin-output-from-admin-section/#post-514966)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
