Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::get_remove_label_template │ private │ WC 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.

Метод класса: Wishlist{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_remove_label_template(): string;

Код Wishlist::get_remove_label_template() WC 11.2.1

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