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.
Метод класса: Wishlist{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->render_empty_markup( $items ): string;
- $items(массив) (обязательный)
- .
Код Wishlist::render_empty_markup() Wishlist::render empty markup WC 11.2.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 )
);
}