Comment Hacks


Make comments management easier by applying the simple hacks Joost has gathered over the years.

This plugin adds some small hacks around core WordPress comments to make them more bearable:

  • Более чистый комментарий по электронной почте.
  • The option to enforce a comment policy: just create a comment policy page, toggle the option on and select it, and
    commenters will have to accept your comment policy before being able to comment.
  • The option to forward comments to an email address (for instance for your support team) and then trash them.
  • Возможность запретить комментарии по минимальной и максимальной длине.
  • Возможность перенаправить пользователя после первого комментария на выбранную страницу.
  • Поле ввода на экране редактирования комментария для изменения родительского идентификатора комментария.
  • Ссылки в разделе комментариев на электронную почту отдельных комментаторов.
  • A button in the WP toolbar to email all the commenters on a post.
  • Adds a comment routing option. This adds a dropdown in a post’s discussion settings, allowing the routing of comment emails to another user.

See the screenshots to get an even better idea of the plugins’ functionality.

Have you found an issue?

If you have bugs to report, please go to the plugin’s GitHub repository. For security issues, please use our vulnerability disclosure program, which is managed by PatchStack. They will assist you with verification, CVE assignment, and, of course, notify us.


  • Screenshot of a clean comment notification email.
  • Поле редактирования родительского комментария.
  • The plugins admin settings.
  • The button on the frontend to email all the commenters on a post.
  • Ссылка в бэкэнде для отправки сообщения отдельным комментаторам по почте.


Установите через ваш бэкэнд

  1. Search for «comment hacks», click install.
  2. You’re done.

Установить вручную

  1. Скачайте и распакуйте плагин.
  2. Загрузите каталог yoast-comment-hacks в каталог /wp-content/plugins/
  3. Активируйте плагин на странице «Плагины» в панели управления WordPress.
  4. Configure your settings on the Settings → Comment Hacks screen.


The update of this plugin cause a critical error on my site and took the whole site down. Do not recommend.
Fatal error: Uncaught Error: Class "JoostBlog\WP\Comment\Inc\Hacks" not found in /var/www/html/wp-content/plugins/yoast-comment-hacks/yoast-comment-hacks.php:53 Stack trace: #0 /var/www/html/wp-admin/includes/plugin.php(2314): include_once() #1 /var/www/html/wp-admin/plugins.php(192): plugin_sandbox_scrape() #2 {main} thrown in /var/www/html/wp-content/plugins/yoast-comment-hacks/yoast-comment-hacks.php on line 53
I am sorry to leave you a 1 star, but your plugin does not work. Plus there is no instructions on how to use this plugin. I have click on the email icon a lot and nothing happens. The link looks like this (not putting my real email here) Okay now what? If you can tell me how this plugin works and I can get to work, this would be wonderful but if not then I will leave my review. Thank you
01.04.2021 2 ответа
The email section does not appear and does not work
No warnings when the comment is too long. Someone could spend an hour writing a comment and then get the message that their comment is too long. It would be nice if, when someone reached the limit, a warning is given (Hey, you've reached your limit) No information given after the fact. For example, if I'm 1000 characters over the limit it'd be nice to get a message that says, "You're 1000 characters over the limit," instead of, "Your comment is too long. Try again." or whatever it says. Great idea but not a good implementation.
Посмотреть все 13 отзывов

Участники и разработчики

«Comment Hacks» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:


«Comment Hacks» переведён на 20 языков. Благодарим переводчиков за их работу.

Перевести «Comment Hacks» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений


  • Fix missing autoloader


  • Introduces a new option to the plugin: adding a comment policy was never easier than this: just create a comment
    policy page, toggle the option on and select it, and commenters will have to accept your comment policy before being
    able to comment.
  • Fixes a bug where editing a comment on the quick edit screen would cause that comment to lose its parent.
  • Enhances performance by preventing too frequent option updates.
  • Remove all direct DB queries in favor of using WordPress core functions.


  • Fixed a couple of PHP 7.4 related issues.


  • Changed namespace to JoostBlog.
  • Removed Yoast branding.
  • Updated plugin to require PHP 7.4.


  • Bugfixes:
    • Fixed: the «Email commenters» link would not be displayed in the WordPress admin bar and in the Comments list.
    • Fixed: the «Email commenters» link in the front end admin bar wouldn’t work when jQuery wasn’t enqueued.
    • Fixed: the notification emails for new comments would have incorrect content for the Author line and the text displayed before the comment.


  • Fix language packs.


  • Bugfixes:
    • Fixed: comment recipient dropdown would reset on reload of the page.
    • Fixed: admin bar CSS showing when no admin bar is showing.


  • Enhancements:
    • Limit the roles shown in the comment notifications dropdown to roles that normally exist and can write. Introduces a new filter to allow expanding them.


  • Enhancements:
    • Add option to restrict comments that are too long, next to too small.
    • Add reply-to header to comment notification and moderation emails, pointing to the post author.
    • Preserve the active tab when saving settings.
    • Remove [...] from pingback / trackback excerpt in cleaned emails as that’s already included by core.
    • Replace link to ARIN with link to for details about the IP.
    • Рефакторинг кода для удобства чтения и качества кода.
    • Refactor upgrade routine to do less DB queries.


Исправляет несколько проблем:

  • Differentiate between AJAX request and normal POST for nonce checking, fixes #7.
  • Make sure comment type isn’t empty in cleaned email, fixes #8.
  • Allow setting the comment parent to 0, fixes #10.
  • Prevents defaults from being reinstated, fixes #14.


  • Adds translator comments to all strings with sprintf / printf.
  • Updates to new version of Yoast i18n, in the process switching from to and removing packaged translations.
  • Added yarn.lock and removed no longer needed i18n grunt tasks.


  • Add text domain so the plugin can be translated.


  • Add comment routing option, adds a dropdown in a post’s discussion settings, allowing the routing of comment emails to another user.


  • Первоначальный вариант.