WordPress at Your Fingertips
function is not described

WC_Product::add_to_cart_description() public WC 3.3.0

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

{} It's a method of the class: WC_Product{}

Return

String.

Usage

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

Changelog

Since 3.3.0 Introduced.

Code of WC_Product::add_to_cart_description() WC 5.5.2

<?php
public function add_to_cart_description() {
	/* translators: %s: Product title */
	return apply_filters( 'woocommerce_product_add_to_cart_description', sprintf( __( 'Read more about &ldquo;%s&rdquo;', 'woocommerce' ), $this->get_name() ), $this );
}