Skip to content

Instantly share code, notes, and snippets.

@beastaugh
Created December 8, 2008 13:33
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 beastaugh/33455 to your computer and use it in GitHub Desktop.
Save beastaugh/33455 to your computer and use it in GitHub Desktop.
Change comment text to something else.
<?php
/*
Plugin Name: Change Comment Text
Plugin URI: http://tarskitheme.com/
Description: Change comment text to something else.
Author: Benedict Eastaugh
Version: 1.0
Author URI: http://extralogical.net/
*/
function change_no_comments_text($text, $number) {
if (0 == $number) $text = "Comment";
return $text;
}
add_filter('comments_number', 'change_no_comments_text', 10, 2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment