woocommerce_product_single_add_to_cart_text

woocommerce_product_single_add_to_cart_text

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_product_single_add_to_cart_text') is found 2 times:

  • /includes/abstracts/abstract-wc-product.php line 1973
    	 *
    	 * @return string
    	 */
    	public function single_add_to_cart_text() {
    		return apply_filters( 'woocommerce_product_single_add_to_cart_text', __( 'Add to cart', 'woocommerce' ), $this );
    	}
    
    	/**
    	 * Get the aria-describedby description for the add to cart button.
    	 *
    	 * @return string
    
  • /includes/class-wc-product-external.php line 171
    	 * @access public
    	 * @return string
    	 */
    	public function single_add_to_cart_text() {
    		return apply_filters( 'woocommerce_product_single_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.
    	 *
    	 * @access public
    

Examples using woocommerce_product_single_add_to_cart_text