Created
March 26, 2014 21:55
-
-
Save michaeltieso/9794479 to your computer and use it in GitHub Desktop.
Posted below is what you will need to add to your themes function.php to disable nRelate on WooCommerce's pages.
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 hide_nrelate_from_posts($load_nrelate) { | |
if ( is_woocommerce() ) { | |
$load_nrelate = false; | |
} | |
return $load_nrelate; | |
} | |
add_filter('nrelate_related_is_loading', 'hide_nrelate_from_posts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment