Skip to content

Instantly share code, notes, and snippets.

@PaulHughes01
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save PaulHughes01/9906370 to your computer and use it in GitHub Desktop.

Select an option

Save PaulHughes01/9906370 to your computer and use it in GitHub Desktop.
Allow Moot to be used for commenting pages not just posts in WordPress.
<?php
// In the WordPress Moot Plugin version 2.0.11
// In the file class-moot.php, replace line 61, which looks like:
if (!is_home() && $forumname != null && get_option('moot_generate') == "true" && get_post_type() == "post") {
// Replace it with THIS:
if (!is_home() && $forumname != null && get_option('moot_generate') == "true" && in_array( get_post_type(), array( 'post', 'page' ) ) ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment