Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::render_item_markup │ private │ WC 1.0

Render a single SSR item. Composes the shared image / name / price markup with the Wishlist-specific "Add to cart" button.

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

Хуков нет.

Возвращает

string.

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

// private - только в коде основоного (родительского) класса
$result = $this->render_item_markup( $item ): string;
$item(array<string, mixed>) (обязательный)
Schema-shape item.

Код Wishlist::render_item_markup() WC 11.2.1

private function render_item_markup( array $item ): string {
	$row_inner = ShopperListRenderer::render_ssr_common_row( $item, $this->get_remove_label_template() )
		. $this->render_ssr_add_to_cart( $item );
	return ShopperListRenderer::render_each_child( $item, $row_inner );
}