Title: Feed detection
Last modified: August 20, 2016

---

# Feed detection

 *  Resolved [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/feed-detection/)
 * Hi all,
 * Am looking for a reliable, (relatively) elegant way to detect if the page being
   accessed is a feed or not. Essentially I’m adding logic in an init hook that 
   I do not want to execute if they’re not accessing a regular page. Checking for
   a feed get parameter wouldn’t work if they’re using redirects, among other things.
 * Thanks for any suggestions!
 * Regards,
    Brian

Viewing 1 replies (of 1 total)

 *  Thread Starter [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/feed-detection/#post-2266125)
 * Am new to WordPress plugin development and missed the listing of Conditional 
   Tags:
 * [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * Looks like is_feed() will do the trick!

Viewing 1 replies (of 1 total)

The topic ‘Feed detection’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/feed-detection/#post-2266125)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
