WordPress action hook · part of WordPress core
comment_form_after_fields
A WordPress core action that 6 plugins also fire themselves, running on 32K+ sites between them.
“Fires for integrating contact forms with third party plugins such as captcha plugins”
How to use comment_form_after_fields
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'comment_form_after_fields', function() {
// Your code runs here.
}, 10, 1 );Argument names come from Master Addons for Elementor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
6 plugins that fire comment_form_after_fields
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Master Addons for Elementor30,000+ installs
do_action( 'comment_form_after_fields' )addons/content/ma-comments/ma-comments.php:2375 -
Realtyna Organic IDX plugin + WPL Real Estate1,000+ installs
do_action( 'comment_form_after_fields' )views/activities/listing_contact/tmpl/default.php:41 -
FluentComments800+ installs
do_action( 'comment_form_after_fields' )app/Services/Frontend.php:452 -
Give Me Answer Lite10+ installs
do_action( 'comment_form_after_fields' )includes/class-template.php:371 -
Comments Everywhere10+ installs
do_action( 'comment_form_after_fields' )files/comment-template.php:65 -
Real Time Comments With PusherFewer than 10 installs
do_action( 'comment_form_after_fields' )templates/comments.php:23
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.