In most WordPress sites, you may notice a Reply link under each comment. This allows you to reply other person’s comment easily. Here’s an example from Twenty Twelve theme:
In this tutorial, I’ll show you how to easily customize the reply link or replace the “Reply” word with your own word. WordPress has a filter calledĀ comment_reply_link
. This filter accepts few arguments and you may find them fromĀ WordPress Codex. If you simply want to replace the “Reply” word with your own words, here’s a working WordPress snippet that can be placed on your theme’s functions.php
file.
What the code does is basically replacing the word “Reply” to “Reply to this comment” phrase. You may change the phrase as needed.
If you’ve any question, feel free to drop you comment below. If you’re looking for more awesome WordPress snippet, take a look at our WordPress Snippets archive page.
Leave a Reply