W3cubDocs

/WordPress

_search_terms_tidy( string $t )

This function has been deprecated.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Formerly used internally to tidy up the search terms.

Parameters

$t

(string) (Required) Search terms to "tidy", e.g. trim.

Return

(string) Trimmed search terms.

Source

File: wp-includes/deprecated.php

function _search_terms_tidy( $t ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );
	return trim( $t, "\"'\n\r " );
}

Changelog

Version Description
3.7.0 This function has been deprecated.
2.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_search_terms_tidy