Automattic\WooCommerce\Blocks\BlockTypes

FeaturedCategory::get_item_title()protectedWC 1.0

Returns the name of the featured category.

Method of the class: FeaturedCategory{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_item_title( $category );
$category(\WP_Term) (required)
Featured category.

FeaturedCategory::get_item_title() code WC 9.5.1

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