WC_Product_Variable::add_to_cart_description()
Get the add to cart button text description - used in aria tags.
Method of the class: WC_Product_Variable{}
Hooks from the method
Return
String
.
Usage
$WC_Product_Variable = new WC_Product_Variable(); $WC_Product_Variable->add_to_cart_description();
Changelog
Since 3.3.0 | Introduced. |
WC_Product_Variable::add_to_cart_description() WC Product Variable::add to cart description code WC 9.3.1
public function add_to_cart_description() { /* translators: %s: Product title */ return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Select options for “%s”', 'woocommerce' ), $this->get_name() ), $this ); }