-
-
Save PaulHughes01/2eb323922de86fac01a7 to your computer and use it in GitHub Desktop.
Disqus & Muut Compatibility
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 | |
/* | |
Place this code at the bottom of your theme's functions.php file. | |
*/ | |
// Make sure that Disqus commenting can be used even on a site that uses Muut for other things. | |
function my_remove_muut_comments_template_filter() { | |
if (class_exists('Muut') && class_exists('Muut_Initializer')) { | |
remove_filter( 'comments_template', array( Muut_Initializer::instance(), 'initTemplateLoader' ) ); | |
} | |
} | |
add_action( 'init', 'my_remove_muut_comments_template_filter' ); |
My pleasure! Let me know if you need any other help getting Muut set up with WordPress. :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It worked! Thanks for the solution! It was fast! Congrats!