WordPress开发者和主题制作者的搜索引擎



sanitize_title_for_query ›

Since3.1.0
已弃用n/a
sanitize_title_for_query ( $title )
参数:
  • (string) $title The string to be sanitized.
    Required: Yes
返回:
  • (string) The sanitized string.
定义在:
文档:

Sanitizes a title with the 'query' context.

Used for querying the database for a value from URL.



源码

function sanitize_title_for_query( $title ) {
	return sanitize_title( $title, '', 'query' );
}