Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.