Skip to content

Instantly share code, notes, and snippets.

@danielpowney
Created October 17, 2017 22:13
Show Gist options
  • Save danielpowney/3b3e736480c181f30ed52efbcec78ac7 to your computer and use it in GitHub Desktop.
Save danielpowney/3b3e736480c181f30ed52efbcec78ac7 to your computer and use it in GitHub Desktop.
<?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