W3cubDocs

/WordPress

_search_terms_tidy( string $t ): string

Formerly used internally to tidy up the search terms.

Parameters

$tstringrequired
Search terms to "tidy", e.g. trim.

Return

string Trimmed search terms.

Source

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–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_search_terms_tidy