Warning: This function has been deprecated.

Alert: 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.

_search_terms_tidy() WordPress Function

The search_terms_tidy() function is used to clean up search terms entered by users on your WordPress site. This function is especially useful for sites with a lot of traffic, as it can help to keep your search terms consistent and organized. This function can also be used to add custom search functionality to your site.

_search_terms_tidy( string $t ) #

Formerly used internally to tidy up the search terms.


Parameters

$t

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


Top ↑

Return

(string) Trimmed search terms.


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.7.0This function has been deprecated.
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.