wpseek.com
A WordPress-centric search engine for devs and theme authors



sanitize_title_for_query › WordPress Function

Since3.1.0
Deprecatedn/a
sanitize_title_for_query ( $title )
Parameters:
  • (string) $title The string to be sanitized.
    Required: Yes
Returns:
  • (string) The sanitized string.
Defined at:
Codex:

Sanitizes a title with the 'query' context.

Used for querying the database for a value from URL.


Source

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