Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::render_template_markup │ private │ WC 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.

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

Хуков нет.

Возвращает

string.

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

// private - только в коде основоного (родительского) класса
$result = $this->render_template_markup(): string;

Код Wishlist::render_template_markup() WC 11.3.0

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 );
}