Uma área de pesquisa sobre o WordPress para devs e autores do tema



sanitize_title_for_query ›

Desde3.1.0
Obsoleton/a
sanitize_title_for_query ( $title )
Parâmetros:
  • (string) $title The string to be sanitized.
    Required: Yes
Retorna:
  • (string) The sanitized string.
Definido em:
Codex:

Sanitizes a title with the 'query' context.

Used for querying the database for a value from URL.



Fonte

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