WordPress at Your Fingertips
function is not described

WC_Query::remove_posts_where() public WC 1.0

Deprecated from version 3.2.0. It is no longer supported and can be removed in future releases. Use search_post_excerpt() is deprecated instead.

Remove the posts_where filter.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Deprecated Since 3.2.0 - Nothing to remove anymore because search_post_excerpt() is deprecated.

Code of WC_Query::remove_posts_where() WC 5.7.1

public function remove_posts_where() {
	wc_deprecated_function( 'WC_Query::remove_posts_where', '3.2.0', 'Nothing to remove anymore because search_post_excerpt() is deprecated.' );
}