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. First, go into your MailChimp RSS setting and add ?allow_mailchimp=true to the end of the Feed URL.

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

Comments

Add a Comment