Automattic\WooCommerce\Internal\Admin\ProductReviews
ReviewsListTable::column_type()
Renders the type column.
Метод класса: ReviewsListTable{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->column_type( $item ) : void;
- $item(WP_Comment|разное) (обязательный)
- Review or reply being rendered.
Код ReviewsListTable::column_type() ReviewsListTable::column type WC 7.5.1
protected function column_type( $item ) : void { $type = 'review' === $item->comment_type ? '☆ ' . __( 'Review', 'woocommerce' ) : __( 'Reply', 'woocommerce' ); echo $this->filter_column_output( 'type', esc_html( $type ), $item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }