Customize "Add comment" form in admin

This is part of a larger plugin I am developing which has various custom post types. For one of the post types, commenting is very important but is only done via the admin area, not the front end. I want to add a checkbox in the “Add comment” form box in the admin which would give the person adding the comment the option to have an email sent to the author of the post with the comment text. I already have the actions set up to have the email sent, but right now it sends on every comment.

See screenshot:

I can’t find any filters or anything in the WordPress core that would allow me to add this customization.

  • Tom Eagles
    • Syntax Hero

    @sccr410 i have done some searching on google and come up with nothing that would do what you want. You could maybe get some feedback on something like this in the support forums.

    In the meantime however i will tag this for one of our amazing lead developers and see if they have an idea. I’m also going to move this to the custompress section where it may get some more feedback from other users. although not directly connected.



  • Arnold
    • El Macho WP

    Let me make sure we’re talking about the same place. It sounds like you want to add functionality to the post.php Comments meta box in the backend? This is where all post, pages and custom post types are edited on the back end.

    There’s some complications in that if people Other than the Author of the post are supposed to enter comments there, they must be given capabilities to edit posts which implies they can edit Anything in a post. Is that what you intend? Are they going to be given Editor roles or similar?

  • Timothy
    • Chief Pigeon

    Hello, hope you’re well.

    Just following up on some threads here and noted that we’ve not heard from you in a while.

    If you’re still looking for some assistance on this thread then please by all means reopen it or create a fresh thread for any new questions.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.