Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PaulHughes01
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulHughes01/2eb323922de86fac01a7 to your computer and use it in GitHub Desktop.
Save PaulHughes01/2eb323922de86fac01a7 to your computer and use it in GitHub Desktop.
Disqus & Muut Compatibility
<?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' );
@quenquen
Copy link

It worked! Thanks for the solution! It was fast! Congrats!

@PaulHughes01
Copy link
Author

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