_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
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-18 22:27:37

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: