Action hook 'comment_loop_start'

in WP Core File wp-includes/class-wp-query.php at line 3900

View Source

comment_loop_start

Action Hook
Description
Fires once the comment loop is started.

Hook Information

File Location wp-includes/class-wp-query.php View on GitHub
Hook Type Action
Line Number 3900

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into comment_loop_start
add_action('comment_loop_start', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-query.php:3900 - How this hook is used in WordPress core
<?php
3895  			/**
3896  			 * Fires once the comment loop is started.
3897  			 *
3898  			 * @since 2.2.0
3899  			 */
3900  			do_action( 'comment_loop_start' );
3901  		}
3902  	}
3903  
3904  	/**
3905  	 * Determines whether there are more comments available.

PHP Documentation

<?php
/**
			 * Fires once the comment loop is started.
			 *
			 * @since 2.2.0
			 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/class-wp-query.php
Related Hooks

Related hooks will be displayed here in future updates.