Viewing 1 replies (of 1 total)
  • Thread Starter ericalynn

    (@butrflied)

    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:
    https://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.