WC_Product_External::add_to_cart_description()
Get the add to cart button text description – used in aria tags.
Description Description
Return Return
(string)
Source Source
File: includes/class-wc-product-external.php
public function add_to_cart_description() { /* translators: %s: Product title */ return apply_filters( 'woocommerce_product_add_to_cart_description', $this->get_button_text() ? $this->get_button_text() : sprintf( __( 'Buy “%s”', 'woocommerce' ), $this->get_name() ), $this ); }
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |