Automattic\WooCommerce\Blocks\BlockTypes
FeaturedProduct::get_item_title
Returns the name of the featured product.
Method of the class: FeaturedProduct{}
No Hooks.
Returns
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_item_title( $product );
- $product(WC_Product) (required)
- Product object.
FeaturedProduct::get_item_title() FeaturedProduct::get item title code WC 9.8.5
protected function get_item_title( $product ) { return $product->get_title(); }