Guest User

Untitled

a guest
Jun 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. /*
  3. INSTRUCTIONS FOR THIS CODE:
  4. On your RSS URL in Mailchimp add &allow_mailchimp=true to the end of it.
  5. Then copy the below code and paste it into a plugin like My Custom Functions or Code Snippets on your site.
  6. This will allow MailChimp through the content blocks.
  7. */
  8.  
  9. function allow_mc_through($block, $post, $uri) {
  10. if(isset($_GET['allow_mailchimp'])) {
  11. $block = false;
  12. }
  13. return $block;
  14. }
  15. add_filter('mepr-pre-run-rule-content', 'allow_mc_through', 11, 3);
Add Comment
Please, Sign In to add comment