Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::render_empty_markup
Render the empty-state markup. Always present in the DOM so JS can toggle it on once the last item is removed. Initially hidden: SSR never shows the message, since state.isEmpty requires the JS-side hasShownItems context flag to flip first.
Метод класса: SavedForLater{}
Хуков нет.
Возвращает
string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->render_empty_markup(): string;
Код SavedForLater::render_empty_markup() SavedForLater::render empty markup WC 11.3.0
private function render_empty_markup(): string {
return ShopperListRenderer::render_empty_state(
__( 'Nothing saved yet — items you save from the cart will appear here.', 'woocommerce' ),
'wc-block-saved-for-later__empty',
true
);
}