comment_form_before_fields
Action HookDescription
Fires before the comment fields in the comment form, excluding the textarea.Hook Information
| File Location | wp-includes/comment-template.phpView on GitHub | 
| Hook Type | Action | 
| Line Number | 2821 | 
Hook Parameters
                    This hook doesn't accept any parameters.
                
                
                
                Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into comment_form_before_fields
add_action('comment_form_before_fields', 'my_custom_function');
function my_custom_function() {
    // Your custom code here
}
Source Code Context
                        wp-includes/comment-template.php:2821
                        - How this hook is used in WordPress core
                    
                    <?php
2816  						/**
2817  						 * Fires before the comment fields in the comment form, excluding the textarea.
2818  						 *
2819  						 * @since 3.0.0
2820  						 */
2821  						do_action( 'comment_form_before_fields' );
2822  					}
2823  
2824  					/**
2825  					 * Filters a comment form field for display.
2826  					 *
PHP Documentation
<?php
/**
						 * Fires before the comment fields in the comment form, excluding the textarea.
						 *
						 * @since 3.0.0
						 */
                        Quick Info
                    
                    - Hook Type: Action
- Parameters: 0
- File: wp-includes/comment-template.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
