Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::get_quantity_label_template
Sprintf template for the per-row quantity label. Used both by PHP SSR (render_ssr_quantity()) and by the JS-side getter (via wp_interactivity_config) so both paths produce the same string after %d interpolation.
Метод класса: SavedForLater{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_quantity_label_template(): string;
Код SavedForLater::get_quantity_label_template() SavedForLater::get quantity label template WC 11.2.1
private function get_quantity_label_template(): string {
/* translators: %d: quantity of saved items. */
return __( 'Quantity: %d', 'woocommerce' );
}