WC_Product_Simple::add_to_cart_text()

Get the add to cart button text.


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-product-simple.php

	public function add_to_cart_text() {
		$text = $this->is_purchasable() && $this->is_in_stock() ? __( 'Add to cart', 'woocommerce' ) : __( 'Read more', 'woocommerce' );

		return apply_filters( 'woocommerce_product_add_to_cart_text', $text, $this );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.