Created
October 17, 2017 22:13
-
-
Save danielpowney/3b3e736480c181f30ed52efbcec78ac7 to your computer and use it in GitHub Desktop.
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
<?php | |
function mr_check_auto_placement2( $filter, $post_id, $rating_form_id) { | |
// only apply filter once... hopefully, this is the post title... | |
if ( in_the_loop() && ( is_single() || is_page() || is_attachment() ) && get_the_ID() != 430 ) { | |
remove_filter( $filter, 'mr_filter_' . $filter ); | |
} | |
} | |
remove_action( 'mr_after_auto_placement', 'mr_check_auto_placement', 10 ); | |
add_action( 'mr_after_auto_placement', 'mr_check_auto_placement2', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment