WC_Product::get_description
Get product description.
Method of the class: WC_Product{}
No Hooks.
Returns
String.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_description( $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_description() WC Product::get description code WC 10.6.2
public function get_description( $context = 'view' ) {
return $this->get_prop( 'description', $context );
}