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.8.1

apply_filters('woocommerce_product_single_add_to_cart_text') is found 2 times:

  • /includes/abstracts/abstract-wc-product.php line 2033
    2029
    2030
    2031
    2032
    2033
    2034
    2035
    2036
    2037
    2038
    2039
    *
     * @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 174
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    * @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