woocommerce_product_add_to_cart_text, $this->get_button_text(

woocommerce_product_add_to_cart_text, $this->get_button_text(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_product_add_to_cart_text, $this->get_button_text(') is found 1 times:

  • /includes/class-wc-product-external.php line 184
    	 * @access public
    	 * @return string
    	 */
    	public function add_to_cart_text() {
    		return apply_filters( 'woocommerce_product_add_to_cart_text', $this->get_button_text() ? $this->get_button_text() : _x( 'Buy product', 'placeholder', 'woocommerce' ), $this );
    	}
    
    	/**
    	 * Get the add to cart button text description - used in aria tags.
    	 *
    	 * @since 3.3.0