Filters a sanitized title string.
Parameters
$titlestring- Sanitized title.
$raw_titlestring- The title prior to sanitization.
$contextstring- The context for which the title is being sanitized.
Source
$title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |
This example changes URL values to lowercase
This example changes a plus to a dash
(from Codex)
Require URL component be lower-cased:
Replace plusses with dashes: