Automattic\WooCommerce\Blocks\BlockTypes
Wishlist::get_add_to_cart_label
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() Wishlist::get add to cart label code WC 10.9.1
private function get_add_to_cart_label(): string {
return __( 'Add to cart', 'woocommerce' );
}