sanitize_title_for_query()
sanitize_title_for_query( string $title ) 使用“query”上下文清…
sanitize_title_for_query( string $title )
使用“query”上下文清理标题。
Sanitizes a title with the ‘query’ context.
使用“query”上下文清理标题。
Sanitizes a title with the ‘query’ context.
目录锚点:#说明#参数#源码
说明(Description)
用于从URL查询数据库中的值。
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $title | (string) | 要清理的字符串。 |
源码(Source)
/**
* Sanitizes a title with the 'query' context.
*
* Used for querying the database for a value from URL.
*
* @since 3.1.0
*
* @param string $title The string to be sanitized.
* @return string The sanitized string.
*/
function sanitize_title_for_query( $title ) {
return sanitize_title( $title, '', 'query' );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 3.1.0 | wp-includes/formatting.php | 17 | 1 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!