Last active
February 11, 2024 18:27
-
-
Save verygoodplugins/e7a70e07a02ad679b5939f95584b483f to your computer and use it in GitHub Desktop.
Bypass WP Fusion's content restriction on RSS feed content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wpf_allow_rss( $can_access, $user_id, $post_id ) { | |
if ( is_feed() ) { | |
$can_access = true; | |
} | |
return $can_access; | |
} | |
add_filter( 'wpf_user_can_access', 'wpf_allow_rss', 10, 3 ); | |
add_filter( 'wpf_user_can_access_archive', 'wpf_allow_rss', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment