Automattic\WooCommerce\Internal\StockNotifications

Notification::get_product_name │ public │ WC 1.0

Get product name.

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

Хуков нет.

Возвращает

string.

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

$Notification = new Notification();
$Notification->get_product_name();

Код Notification::get_product_name() WC 11.2.2

public function get_product_name() {
	$product = $this->get_product();
	if ( ! $product ) {
		return '';
	}

	return $product->get_parent_id() ? $product->get_name() : $product->get_title();
}