Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::column_type()protectedWC 1.0

Renders the type column.

Метод класса: ReviewsListTable{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->column_type( $item ) : void;
$item(WP_Comment|разное) (обязательный)
Review or reply being rendered.

Код ReviewsListTable::column_type() WC 8.7.0

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
}