Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::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 the Wishlist-specific "Add to cart" action button.

Method of the class: Wishlist{}

No Hooks.

Returns

String.

Usage

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

Wishlist::render_template_markup() code WC 10.9.1

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