wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



sanitize_title_for_query › WordPress Function

Depuis3.1.0
Dépréciéen/a
sanitize_title_for_query ( $title )
Paramètres:
  • (string) $title The string to be sanitized.
    Requis: Oui
Retourne:
  • (string) The sanitized string.
Défini(e) dans:
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' );
}