manage_comments_custom_column
Fires when the default column output is displayed for a single row.
Использование
add_action( 'manage_comments_custom_column', 'wp_kama_manage_comments_custom_column_action', 10, 2 ); /** * Function for `manage_comments_custom_column` action-hook. * * @param string $column_name The custom column's name. * @param string $comment_id The comment ID as a numeric string. * * @return void */ function wp_kama_manage_comments_custom_column_action( $column_name, $comment_id ){ // action... }
- $column_name(строка)
- The custom column's name.
- $comment_id(строка)
- The comment ID as a numeric string.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
manage_comments_custom_column
wp-admin/includes/class-wp-comments-list-table.php 1125
do_action( 'manage_comments_custom_column', $column_name, $comment->comment_ID );