Created
November 1, 2021 12:51
-
-
Save DumahX/579371bd5dae72462ec2867217b0adc4 to your computer and use it in GitHub Desktop.
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 | |
/* | |
INSTRUCTIONS FOR THIS CODE: | |
On your RSS URL add &allow_feed=true to the end of it. | |
Then copy the below code and paste it into a plugin like My Custom Functions or Code Snippets on your site. | |
This will allow other plugins/sites to view the feed without the content blocks. | |
*/ | |
function allow_feed_through($block, $post, $uri) { | |
if(isset($_GET['allow_feed'])) { | |
$block = false; | |
} | |
return $block; | |
} | |
add_filter('mepr-pre-run-rule-content', 'allow_feed_through', 11, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment