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.
Method of the class: SavedForLater{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->get_quantity_label_template(): string;
SavedForLater::get_quantity_label_template() SavedForLater::get quantity label template code WC 10.9.4
private function get_quantity_label_template(): string {
/* translators: %d: quantity of saved items. */
return __( 'Quantity: %d', 'woocommerce' );
}