WordPress at Your Fingertips
function is not described

WC_Query::search_post_excerpt() public WC 1.0

Deprecated from version 3.2.0 - Not needed anymore since WordPress 4.5.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Search post excerpt.

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

No Hooks.


null. Nothing.


$WC_Query = new WC_Query();
$WC_Query->search_post_excerpt( $where );
Where clause.
Default: ''


Deprecated Since 3.2.0 - Not needed anymore since WordPress 4.5.

Code of WC_Query::search_post_excerpt() WC 5.6.0

public function search_post_excerpt( $where = '' ) {
	wc_deprecated_function( 'WC_Query::search_post_excerpt', '3.2.0', 'Excerpt added to search query by default since WordPress 4.5.' );
	return $where;