Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::render_template_quantity
Template-mode markup for the quantity span. SFL-specific — Wishlist has no quantity column.
Метод класса: SavedForLater{}
Хуков нет.
Возвращает
Строку.
Использование
// private - только в коде основоного (родительского) класса $result = $this->render_template_quantity(): string;
Код SavedForLater::render_template_quantity() SavedForLater::render template quantity WC 11.0.1
private function render_template_quantity(): string {
return sprintf(
'<span class="%s__quantity" data-wp-text="state.currentItemQuantityLabel"></span>',
esc_attr( ShopperListRenderer::ROW_CLASS )
);
}