WordPress at Your Fingertips
function is not described

WC_Product_Variation::get_catalog_visibility() public WC 1.0

Get catalog visibility.

{} It's a method of the class: WC_Product_Variation{}

Hooks from the method
Return

String.

Usage

$WC_Product_Variation = new WC_Product_Variation();
$WC_Product_Variation->get_catalog_visibility( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Code of WC_Product_Variation::get_catalog_visibility() WC 5.6.0

public function get_catalog_visibility( $context = 'view' ) {
	return apply_filters( $this->get_hook_prefix() . 'catalog_visibility', $this->parent_data['catalog_visibility'], $this );
}