rebase on oct-10-2023

This commit is contained in:
Rachit Bhargava
2023-10-10 17:23:21 -04:00
parent d37566ffb6
commit d096058d7d
4789 changed files with 254611 additions and 307223 deletions

View File

@@ -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.
*