WC_Query::visibility_meta_query │ public │ WC 1.0

Deprecated since 3.0.0 Replaced with taxonomy.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Returns a meta query to handle product visibility.

Method of the class: WC_Query{}

No Hooks.

Returns

array.

Usage

$WC_Query = new WC_Query();
$WC_Query->visibility_meta_query( $compare );
$compare(string)
.
Default: 'IN'

Changelog

Deprecated since 3.0.0 Replaced with taxonomy.

WC_Query::visibility_meta_query() code WC 11.1.2

public function visibility_meta_query( $compare = 'IN' ) {
	return array();
}