WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::render_product() public WC 1.0

Render a single products.

{} Это метод класса: AbstractProductGrid{}

Хуки из метода
Возвращает

Строку. Rendered product output.

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

$AbstractProductGrid = new AbstractProductGrid();
$AbstractProductGrid->render_product( $id );
$id(число) (обязательный)
Product ID.

Код AbstractProductGrid::render_product() WC 4.7.0

<?php
public function render_product( $id ) {
	$product = wc_get_product( $id );

	if ( ! $product ) {
		return '';
	}

	$data = (object) array(
		'permalink' => esc_url( $product->get_permalink() ),
		'image'     => $this->get_image_html( $product ),
		'title'     => $this->get_title_html( $product ),
		'rating'    => $this->get_rating_html( $product ),
		'price'     => $this->get_price_html( $product ),
		'badge'     => $this->get_sale_badge_html( $product ),
		'button'    => $this->get_button_html( $product ),
	);

	return apply_filters(
		'woocommerce_blocks_product_grid_item_html',
		"<li class=\"wc-block-grid__product\">
			<a href=\"{$data->permalink}\" class=\"wc-block-grid__product-link\">
				{$data->image}
				{$data->title}
			</a>
			{$data->badge}
			{$data->price}
			{$data->rating}
			{$data->button}
		</li>",
		$data,
		$product
	);
}