Automattic\WooCommerce\Blocks\BlockTypes

Wishlist::get_add_to_cart_labelprivateWC 1.0

Visible label for the add-to-cart action button, used by both the iAPI <template> and the SSR per-row markup.

Method of the class: Wishlist{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Wishlist::get_add_to_cart_label() code WC 10.9.1

private function get_add_to_cart_label(): string {
	return __( 'Add to cart', 'woocommerce' );
}