Automattic\WooCommerce\Internal\StockNotifications
Notification::get_product_name
Get product name.
Method of the class: Notification{}
No Hooks.
Returns
String.
Usage
$Notification = new Notification(); $Notification->get_product_name();
Notification::get_product_name() Notification::get product name code WC 10.3.6
public function get_product_name() {
$product = $this->get_product();
if ( ! $product ) {
return '';
}
return $product->get_parent_id() ? $product->get_name() : $product->get_title();
}