Many times we got requirement to add thank you message after adding comments added by users.

In this article I will show how to add custom message after getting comments from users. For this we going use the wordpress api. WordPress filters are very useful. You can find all wordpress hooks and filters in wp-includes/default-filters.php file.

Open your functions.php file from your active wordpress theme folder. copy paste the following code in that file.

</p>
<p>function add_custom_text($content) {</p>
<p>    return "</p>
<div class=\"custom-text\">
<p>Hello User!</p>
<p>Thank you for your comment.</p>
<p>Wordpressapi</p>
</div>
<p>";</p>
<p>}</p>
<p>add_filter('comment_text', 'add_custom_text', 1000);</p>
<p>

15 Responses to “how to add thank you message after comments wordpress”

  1. Хороший пост, прочитав пару книг на тему всё таки не взглянул со стороны, а пост как-то задел.

  2. Автор выйди к напроду, вопросы есть!

  3. My personal favorite is actually Justin Bieber, he’s so attractive!

  4. We are a big fan! Appreciate your offering this

  5. Grom says:

    “Классный пост”

  6. BernieR says:

    їPuedo tomar obtener Foto de su sitio

    [url=http://www.bad4dwn.com/]BernieR[/url]

  7. Avast says:

    Очень интересно, но все в будущем хотелось бы еще побольше узнать об этом. Очень понравилась ваша статья!

  8. “познавательная тема”

  9. hi tech says:

    Очень интересно! Судя по некоторым откликам ….

  10. А будет продолжение новости? Очень было бы интересно почитать

  11. Компания “СтройТехноИзоляция” – производство качественных материалов: Пенополиуретан.

  12. Варез says:

    Блоггер, дилема растолкованная вами на блоге несомненно жизненна. Я думаю что тема стоит продолжения в приватной дискуссии. Кстате, у блога непонятное с код-кой RSS. ;)

  13. Appreciate your sharing offering this

Leave a Reply

Wordpressapi is developer code book.
wordpressapi on Facebook
© 2010 Wordpressapi. All Rights Reserved. Reproduction without explicit permission is prohibited.