Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::get_remove_label_templateprivateWC 1.0

Sprintf template for the per-row remove button's aria-label. Used both by PHP SSR and by the JS-side getter (via wp_interactivity_config) so both paths produce the same string after %s interpolation.

Method of the class: Wishlist{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_remove_label_template(): string;

Wishlist::get_remove_label_template() code WC 10.9.1

private function get_remove_label_template(): string {
	/* translators: %s: product name. */
	return __( 'Remove %s from wishlist', 'woocommerce' );
}