WordPress at Your Fingertips
function is not described

WC_Query::get_products_in_view() public WC 1.0

Deprecated from version 2.6.0 due to performance concerns. It is no longer supported and can 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.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Deprecated Since 2.6.0 due to performance concerns

Code of WC_Query::get_products_in_view() WC 5.6.0

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