WC_Product_Variable::add_to_cart_aria_describedby()
Get the aria-describedby description for the add to cart button. Note that this is to provide the description, not the describedby attribute itself.
Метод класса: WC_Product_Variable{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Product_Variable = new WC_Product_Variable(); $WC_Product_Variable->add_to_cart_aria_describedby();
Код WC_Product_Variable::add_to_cart_aria_describedby() WC Product Variable::add to cart aria describedby WC 9.8.2
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 ); }