Title: RSS?
Last modified: August 30, 2016

---

# RSS?

 *  [ericalynn](https://wordpress.org/support/users/butrflied/)
 * (@butrflied)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/rss-65/)
 * Anybody have an easy way to create a members only feed? I’d like to use an RSS
   email driven campaign to email site updates .. but my feed is full of protected
   posts 🙂
 * Is there a hook or filter I can easily update or do I have to create my own custom
   rss template?
 * TIA
 * [https://wordpress.org/plugins/wordpress-access-control/](https://wordpress.org/plugins/wordpress-access-control/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ericalynn](https://wordpress.org/support/users/butrflied/)
 * (@butrflied)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/rss-65/#post-6336717)
 * figure it out guys .. not very secure .. I hard coded a test for a feed key ..
   but it might help somebody else out.
 * Add this code to your theme’s functions.php or a site specific plugin.
    Replace{
   random string token} with your own random string token. Then pull your feed with:
   [http://yoursite.com/feed/?feedkey=](http://yoursite.com/feed/?feedkey=){random
   string token}
 *     ```
       add_action('pre_get_posts', 'open_feed' );
       function open_feed(){
   
           if(is_feed() && $_GET['feedkey']=='{random string token}'){
               remove_filter('posts_join_paged', array('WordPressAccessControl', 'posts_join_paged'), 10, 2);
               remove_filter('posts_where_paged', array('WordPressAccessControl', 'posts_where_paged'), 10, 2);
               remove_filter('the_excerpt', array('WordPressAccessControl', 'remove_excerpt'));
               remove_filter('the_content', array('WordPressAccessControl', 'remove_excerpt'));
           }
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘RSS?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-access-control.svg)
 * [WordPress Access Control](https://wordpress.org/plugins/wordpress-access-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-access-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-access-control/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-access-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-access-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-access-control/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ericalynn](https://wordpress.org/support/users/butrflied/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/rss-65/#post-6336717)
 * Status: not resolved