Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::render_items_markupprivateWC 1.0

Render the SSR markup for each item. JS will reconcile these via data-wp-each-child after hydration.

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

Хуков нет.

Возвращает

Строку.

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

// private - только в коде основоного (родительского) класса
$result = $this->render_items_markup( $items ): string;
$items(массив) (обязательный)
.

Код SavedForLater::render_items_markup() WC 11.0.1

private function render_items_markup( array $items ): string {
	$markup = '';
	foreach ( $items as $item ) {
		$markup .= $this->render_item_markup( $item );
	}
	return $markup;
}