Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

sanitize_title_with_dashes()

3 tags 1 category

sanitize_title_with_dashes() — 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.

Inputs: $title (string): The title to be sanitized. $raw_title (string): Optional. Not used. Default empty. $context (string): Optional. The operation for which the string is sanitized. When set to ‘save’, additional entities are converted to hyphens or stripped entirely. Default ‘display’.

Returns string: The sanitized title.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…