Created
July 17, 2015 15:05
-
-
Save strangerstudios/d605744f483087ff9526 to your computer and use it in GitHub Desktop.
Have the PMPro membership content filter fire later.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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