sanitize_title_for_query( string $title )
Sanitizes a title with the ‘query’ context.
Description Description
Used for querying the database for a value from URL.
Parameters Parameters
- $title
-
(string) (Required) The string to be sanitized.
Return Return
(string) The sanitized string.
Source Source
File: wp-includes/formatting.php
function sanitize_title_for_query( $title ) {
return sanitize_title( $title, '', 'query' );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |