Automattic\WooCommerce\Blocks\BlockTypes

FeaturedProduct::get_item_title()protectedWC 1.0

Returns the name of the featured product.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_item_title( $product );
$product(\WC_Product) (обязательный)
Product object.

Код FeaturedProduct::get_item_title() WC 7.7.2

protected function get_item_title( $product ) {
	return $product->get_title();
}