Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save strangerstudios/d605744f483087ff9526 to your computer and use it in GitHub Desktop.
Save strangerstudios/d605744f483087ff9526 to your computer and use it in GitHub Desktop.
Have the PMPro membership content filter fire later.
function init_pmpro_membership_content_filter_later()
{
remove_filter('the_content', 'pmpro_membership_content_filter', 5);
remove_filter('the_content_rss', 'pmpro_membership_content_filter', 5);
remove_filter('comment_text_rss', 'pmpro_membership_content_filter', 5);
add_filter('the_content', 'pmpro_membership_content_filter', 15);
add_filter('the_content_rss', 'pmpro_membership_content_filter', 15);
add_filter('comment_text_rss', 'pmpro_membership_content_filter', 15);
}
add_action('init', 'init_pmpro_membership_content_filter_later');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment