Automattic\WooCommerce\Internal\ShopperLists

ShopperListsController::render_wishlist_endpointpublicWC 1.0

Render the wishlist endpoint by dispatching to the woocommerce/wishlist block. The block handles the empty state, logged-out guard, asset enqueues, and item rendering.

Method of the class: ShopperListsController{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ShopperListsController = new ShopperListsController();
$ShopperListsController->render_wishlist_endpoint(): void;

ShopperListsController::render_wishlist_endpoint() code WC 11.0.1

public function render_wishlist_endpoint(): void {
	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- the block string is a static literal; `do_blocks()` invokes the registered block's render callback, which is responsible for its own escaping.
	echo do_blocks( '<!-- wp:woocommerce/wishlist /-->' );
}