sanitize_title_with_dashes


sanitize_title_with_dashes ( $title, $raw_title = '', $context = 'display' )

Parameters:
  • (string) $title The title to be sanitized.
  • (string) $raw_title Optional. Not used.
  • (string) $context Optional. The operation for which the string is sanitized.
Returns:
  • (string) The sanitized title.
Defined at:

Description

Sanitizes a title, replacing whitespace and a few other characters with dashes.

Limits the output to alphanumeric characters, underscore (_) and dash (-). Whitespace becomes a dash.

Related Functions

sanitize_title, sanitize_file_name, sanitize_title_for_query, sanitize_mime_type, _sanitize_text_fields

Top Google Results

User discussions

wpseek mobile