WP_Comments_List_Table::column_default()
Метод класса: WP_Comments_List_Table{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$WP_Comments_List_Table = new WP_Comments_List_Table(); $WP_Comments_List_Table->column_default( $item, $column_name );
- $item(WP_Comment) (обязательный)
- The comment object.
- $column_name(строка) (обязательный)
- The custom column's name.
Список изменений
С версии 5.9.0 | Введена. |
С версии 5.9.0 | Renamed $comment to $item to match parent class for PHP 8 named parameter support. |
Код WP_Comments_List_Table::column_default() WP Comments List Table::column default WP 6.7.1
public function column_default( $item, $column_name ) { // Restores the more descriptive, specific name for use within this method. $comment = $item; /** * 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, $comment->comment_ID ); }