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

Glossary Term

sanitize_title()

3 tags 1 category

sanitize_title() — Sanitizes a string into a slug, which can be used in URLs or HTML attributes. By default, converts accent characters to ASCII characters and further limits the output to alphanumeric characters, underscore (_) and dash (-) through the {

Inputs: $title (string): The string to be sanitized. $fallback_title (string): Optional. A title to use if $title is empty. Default empty. $context (string): Optional. The operation for which the string is sanitized. When set to ‘save’, the string runs through remove_accents(). Default ‘save’.

Returns string: The sanitized string.

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…