WC_Product::get_catalog_visibility
Get catalog visibility.
Method of the class: WC_Product{}
No Hooks.
Returns
String
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_catalog_visibility( $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_catalog_visibility() WC Product::get catalog visibility code WC 9.8.5
public function get_catalog_visibility( $context = 'view' ) { return $this->get_prop( 'catalog_visibility', $context ); }