• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

How to alter WordPress comment email

WordPress comments are very extensible feature of WordPress, since you cannot do very much with them by default. So how to extend them? There are few ways of doing this, so I’ll try to explain some of them. I will focus mainly on how to add some text into moderation and notification emails, or how to change them all.

First is by filters and actions. There are several filters and several actions regarding comments. I personally used "comment_moderation_text" and "comment_notification_text" to alter email text on newly posted comments. You can of course change whole text with these filters if you want.

Another way to play with comment notification and moderation emails is via pluggable functions. Their names are "wp_notify_postauthor" and "wp_notify_moderator". Both these functions are simple and just create an email content, subject and send it via wp_mail function. But be very careful overriding these pluggable functions, because in WP 2.2.3 you cannot override it in WP administration, and if you insert this function into some plugin of yours without if clause with "function_exists", there will be an PHP error.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Click here to Subscribe without commenting

Primary Sidebar

WordPress How To Guides

  1. StudioPress Tutorials
  2. WordPress Plugins
  3. Shared.css Framework
  4. WordPress How To Guides
    1. How to Hack a WordPress Theme
    2. How to alter WordPress comment email
    3. How to reorder pages
    4. How to create your own filled-in extension
    5. Lost your password in WordPress?
    6. How to Comment Code in WordPress Templates
  5. WordPress Plugin Reviews

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬