Action hook 'manage_comments_custom_column'

in WP Core File wp-admin/includes/class-wp-comments-list-table.php at line 1129

View Source

manage_comments_custom_column

Action Hook
Description
Fires when the default column output is displayed for a single row.

Hook Information

File Location wp-admin/includes/class-wp-comments-list-table.php View on GitHub
Hook Type Action
Line Number 1129

Hook Parameters

Type Name Description
string $column_name The custom column's name.
string $comment_id The comment ID as a numeric string.

Usage Examples

Basic Usage
<?php
// Hook into manage_comments_custom_column
add_action('manage_comments_custom_column', 'my_custom_function', 10, 2);

function my_custom_function($column_name, $comment_id) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/class-wp-comments-list-table.php:1129 - How this hook is used in WordPress core
<?php
1124  		 * @since 2.8.0
1125  		 *
1126  		 * @param string $column_name The custom column's name.
1127  		 * @param string $comment_id  The comment ID as a numeric string.
1128  		 */
1129  		do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );
1130  	}
1131  }

PHP Documentation

<?php
/**
		 * Fires when the default column output is displayed for a single row.
		 *
		 * @since 2.8.0
		 *
		 * @param string $column_name The custom column's name.
		 * @param string $comment_id  The comment ID as a numeric string.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-comments-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.