WC_Product::get_name
Get product name.
Method of the class: WC_Product{}
No Hooks.
Returns
String.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_name( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::get_name() WC Product::get name code WC 10.6.2
public function get_name( $context = 'view' ) {
return $this->get_prop( 'name', $context );
}