Automattic\WooCommerce\Blocks\BlockTypes

AddToWishlistButton::get_saved_labelprivateWC 1.0

Visible label when the product is already in the wishlist.

Method of the class: AddToWishlistButton{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

AddToWishlistButton::get_saved_label() code WC 10.9.1

private function get_saved_label(): string {
	return __( 'Saved to wishlist', 'woocommerce' );
}