WC_Product_External::add_to_cart_description()publicWC 3.3.0

Get the add to cart button text description - used in aria tags.

Метод класса: WC_Product_External{}

Хуки из метода

Возвращает

Строку.

Использование

$WC_Product_External = new WC_Product_External();
$WC_Product_External->add_to_cart_description();

Список изменений

С версии 3.3.0 Введена.

Код WC_Product_External::add_to_cart_description() WC 8.7.0

public function add_to_cart_description() {
	/* translators: %s: Product title */
	return apply_filters( 'woocommerce_product_add_to_cart_description', $this->get_button_text() ? $this->get_button_text() : sprintf( __( 'Buy “%s”', 'woocommerce' ), $this->get_name() ), $this );
}