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