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.

Return

String. The sanitized string.

Usage

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

Changelog

Since 3.1.0 Introduced.

Code of sanitize title for query: wp-includes/formatting.php WP 5.2.3

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