Automattic\WooCommerce\Blocks\BlockTypes
Wishlist::render_empty_markup
Render the empty-state markup. Visible on first paint when the list is empty (no hasShownItems gate), then iAPI takes over via state.isEmpty for runtime transitions.
Method of the class: Wishlist{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->render_empty_markup( $items ): string;
- $items(array) (required)
- .
Wishlist::render_empty_markup() Wishlist::render empty markup code WC 10.9.1
private function render_empty_markup( array $items ): string {
return ShopperListRenderer::render_empty_state(
__( 'Your wishlist is empty. Items you add to your wishlist will appear here.', 'woocommerce' ),
'wc-block-wishlist__empty',
! empty( $items )
);
}