rebase on oct-10-2023
This commit is contained in:
@@ -51,6 +51,20 @@ class WC_Product_Variable extends WC_Product {
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the aria-describedby description for the add to cart button.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function add_to_cart_aria_describedby() {
|
||||
/**
|
||||
* This filter is documented in includes/abstracts/abstract-wc-product.php.
|
||||
*
|
||||
* @since 7.8.0
|
||||
*/
|
||||
return apply_filters( 'woocommerce_product_add_to_cart_aria_describedby', $this->is_purchasable() ? __( 'This product has multiple variants. The options may be chosen on the product page', 'woocommerce' ) : '', $this );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the add to cart button text.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user