WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Hikari Featured Comments

It adds 3 new custom fields to comments (Featured, Buried, Children buried), allowing you to add special properties to each of them.

Ok, I installed your plugin and as expected nothing happens when I flag a comment as featured. What now?

Now your creativity defines what happens! These properties open a variety of possibilities, in both Web Design and Web Development areas!

If you wanna give special CSS styles to flagged comments, just go to your theme's style.css, search for the section where comments styles are and add new styles there. A very simple exemple:

.comment.featured{
    weight: bold;
}
.comment.buried{
    display: none;
}

Nice! This gives me some great ideas, but that would require more advanced code... What can you offer?

If you wanna develop extra features based on these properties, I provide 3 functions to help you:

  • hkFC_is_comment_featured($comment)
  • hkFC_is_comment_buried($comment)
  • hkFC_is_comment_children_buried($comment)

Just pass a comment object or ID as parameter to receive a boolean return saying if that comment is flagged or not, you can also pass a null parameter to use current comment. There are also 3 filters you can use to change a comment property just before any code retrieves that data, without needing to hack the plugin:

  • apply_filters( 'hkFC_is_comment_featured', $featured, $comment_id )
  • apply_filters( 'hkFC_is_comment_buried', $buried, $comment_id )
  • apply_filters( 'hkFC_is_comment_children_buried', $children_buried, $comment_id )

Requires: 2.9.0 or higher
Compatible up to: 3.0.5
Last Updated: 2010-10-3
Downloads: 1,490

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1