Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::render_items_markup
Render the SSR markup for each item. JS will reconcile these via data-wp-each-child after hydration.
Method of the class: SavedForLater{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->render_items_markup( $items ): string;
- $items(array) (required)
- .
SavedForLater::render_items_markup() SavedForLater::render items markup code WC 10.9.4
private function render_items_markup( array $items ): string {
$markup = '';
foreach ( $items as $item ) {
$markup .= $this->render_item_markup( $item );
}
return $markup;
}