WC_Product::get_short_description()
Get product short description.
Method of the class: WC_Product{}
No Hooks.
Return
String
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_short_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_short_description() WC Product::get short description code WC 8.7.0
public function get_short_description( $context = 'view' ) { return $this->get_prop( 'short_description', $context ); }