WordPress at Your Fingertips
function is not described

WC_Query::remove_product_query() public WC 1.0

Remove the query.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Query::remove_product_query() WC 5.7.1

public function remove_product_query() {
	remove_action( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
}