Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::render_template_markupprivateWC 1.0

The <template data-wp-each> describing how each item is rendered on the client. Pre-rendered children sit alongside as data-wp-each-child elements so first paint is populated. Composes the shared row markup with Saved for Later's quantity span and Move-to-cart action button.

Method of the class: SavedForLater{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->render_template_markup(): string;

SavedForLater::render_template_markup() code WC 10.9.4

private function render_template_markup(): string {
	$row_inner = ShopperListRenderer::render_template_common_row()
		. $this->render_template_quantity()
		. $this->render_template_move_to_cart();
	return ShopperListRenderer::render_each_template( $row_inner );
}