WordPress at a glance
function is not described

sanitize_title_for_query() WP 3.1.0

Sanitizes a title with the 'query' context.

Used for querying the database for a value from URL.

No Hooks.


String. The sanitized string.


sanitize_title_for_query( $title );
$title(string) (required)
The string to be sanitized.

Code of sanitize title for query: wp-includes/formatting.php VER 5.1.1

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