WC_Query::get_products_in_viewpublicWC 1.0

Deprecated since 2.6.0 due to performance concerns. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Get an unpaginated list all product IDs (both filtered and unfiltered). Makes use of transients.

Method of the class: WC_Query{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Query = new WC_Query();
$WC_Query->get_products_in_view();

Changelog

Deprecated since 2.6.0 due to performance concerns

WC_Query::get_products_in_view() code WC 10.6.2

public function get_products_in_view() {
	wc_deprecated_function( 'get_products_in_view', '2.6' );
}