Filters a sanitized title string.
Parameters
$title
string- Sanitized title.
$raw_title
string- The title prior to sanitization.
$context
string- 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: