Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nicholasohrn/9311741 to your computer and use it in GitHub Desktop.
Save nicholasohrn/9311741 to your computer and use it in GitHub Desktop.
Only display comments from registered users
<?php
function registered_users_only_comment_feed_where($where, $query) {
return $where . " AND user_id > 0";
}
add_filter('comment_feed_where', 'registered_users_only_comment_feed_where', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment