Advertisement
verygoodplugins

Untitled

Mar 17th, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function wpf_allow_rss( $can_access, $user_id, $post_id ) {
  2.  
  3.     if ( is_feed() ) {
  4.         $can_access = true;
  5.     }
  6.  
  7.     return $can_access;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_user_can_access', 'wpf_allow_rss', 10, 3 );
  12. add_filter( 'wpf_user_can_access_archive', 'wpf_allow_rss', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement