public function getCommentsTemplate($default_template) { global $wpdb, $post; if (!(is_singular() && (have_comments() || 'open' == $post->comment_status))) { return $default_template; } return dirname(__FILE__) . '/comments_sohu.php'; }