Automattic\WooCommerce\Blocks\BlockTypes
FeaturedCategory::get_item_title()
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() FeaturedCategory::get item title code WC 9.5.1
protected function get_item_title( $category ) { return $category->name; }