Skip to content

Instantly share code, notes, and snippets.

@verygoodplugins
Last active February 11, 2024 18:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save verygoodplugins/e7a70e07a02ad679b5939f95584b483f to your computer and use it in GitHub Desktop.
Save verygoodplugins/e7a70e07a02ad679b5939f95584b483f to your computer and use it in GitHub Desktop.
Bypass WP Fusion's content restriction on RSS feed content
<?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