WC_Query::remove_product_query()publicWC 1.0

Remove the query.

Method of the class: WC_Query{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Query::remove_product_query() code WC 8.9.0

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