On this page
WP_Comments_List_Table::column_default( WP_Comment $item, string $column_name )
Parameters
$itemWP_Comment Required-
The comment object.
$column_namestring Required-
The custom column's name.
Source
File: wp-admin/includes/class-wp-comments-list-table.php. View all references
public function column_default( $item, $column_name ) {
/**
* 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.
*/
do_action( 'manage_comments_custom_column', $column_name, $item->comment_ID );
}
Hooks
- do_action( 'manage_comments_custom_column',
string $column_name ,string $comment_id ) -
Fires when the default column output is displayed for a single row.
Related
Uses
| Uses | Description |
|---|---|
| do_action() wp-includes/plugin.php | Calls the callback functions that have been added to an action hook. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_comments_list_table/column_default