Automattic\WooCommerce\Blocks\BlockTypes

FeaturedCategory::get_item_titleprotectedWC 1.0

Returns the name of the featured category.

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

Хуков нет.

Возвращает

Строку.

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

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

Код FeaturedCategory::get_item_title() WC 11.0.1

protected function get_item_title( $category ) {
	return $category->name;
}