Home / RSS Feeds / MemberPress: Mailchimp Feed Unblocker
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Mailchimp Feed Unblocker

Allows Mailchimp feed through the MemberPress rules protections. Go into your Mailchimp RSS setting and add &allow_mailchimp=true to the end of the Feed URL. This will allow Mailchimp through the content blocks.

Code Preview
php
<?php
function allow_mc_through( $block, $post, $uri ) {
  if( isset( $_GET['allow_mailchimp'] ) ) {
    $block = false;
  }
  return $block;
}
add_filter( 'mepr-pre-run-rule-content', 'allow_mc_through', 11, 3 );

Comments

Add a Comment