WC_Product_Simple::add_to_cart_description()
Get the add to cart button text description - used in aria tags.
Метод класса: WC_Product_Simple{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Product_Simple = new WC_Product_Simple(); $WC_Product_Simple->add_to_cart_description();
Список изменений
С версии 3.3.0 | Введена. |
Код WC_Product_Simple::add_to_cart_description() WC Product Simple::add to cart description WC 9.3.3
public function add_to_cart_description() { /* translators: %s: Product title */ $text = $this->is_purchasable() && $this->is_in_stock() ? __( 'Add to cart: “%s”', 'woocommerce' ) : __( 'Read more about “%s”', 'woocommerce' ); return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( $text, $this->get_name() ), $this ); }