comment_form_top
Fires at the top of the comment form, inside the form tag.
Description
do_action( 'comment_form_top' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'comment_form_top' );
- The following example is for adding a hook callback.
- // define the comment_form_top callback
- function action_comment_form_top( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'comment_form_top', 'action_comment_form_top', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'comment_form_top', 'action_comment_form_top', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/comment-template.php
- do_action( 'comment_form_top' );