Definition:
function is_feed( $feeds = '' ) {}
Is the query for a feed?
Parameters
- string|array $feeds: Optional feed types to check.
Source code
function is_feed( $feeds = '' ) { if ( empty( $feeds ) || ! $this->is_feed ) return (bool) $this->is_feed; $qv = $this->get( 'feed' ); if ( 'feed' == $qv ) $qv = get_default_feed(); return in_array( $qv, (array) $feeds ); }
2121
No comments yet... Be the first to leave a reply!