Automattic\WooCommerce\Blocks\BlockTypes

FeaturedCategory::get_item_title()protectedWC 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 8.7.0

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