apply_filters( 'sanitize_title', string $title , string $raw_title , string $context )
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.
More Information
sanitize_title
is a filter applied to a value to be cleaned up for use in a URL by the function sanitize_title()
Source
File: wp-includes/formatting.php
.
View all references
$title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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: