_search_terms_tidy

函式
_search_terms_tidy ( $t )
Access
Private
引數
  • (string) $t Search terms to "tidy", e.g. trim.
    Required:
返回值
  • (string) Trimmed search terms.
定義位置
相關方法
_usort_terms_by_idget_search_queryget_search_templatethe_search_queryget_search_form
引入
2.9.0
棄用
3.7.0

_search_terms_tidy: 這個函式用於在搜尋查詢中使用搜尋詞之前對它們進行整理。它刪除了任何非字母數字或空白的字元,並將術語轉換為小寫。

以前是在內部使用,用於整理搜尋詞。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function _search_terms_tidy( $t ) {
_deprecated_function( __FUNCTION__, '3.7.0' );
return trim( $t, ""'nr " );
}
function _search_terms_tidy( $t ) { _deprecated_function( __FUNCTION__, '3.7.0' ); return trim( $t, ""'nr " ); }
function _search_terms_tidy( $t ) {
	_deprecated_function( __FUNCTION__, '3.7.0' );
	return trim( $t, ""'nr " );
}

常見問題

FAQs
檢視更多 >