On this page
apply_filters( 'sanitize_title', string $title, string $raw_title, string $context )
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.
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 );
Related
Used By
| Used By | Description |
|---|---|
| sanitize_title() wp-includes/formatting.php | Sanitizes a string into a slug, which can be used in URLs or HTML attributes. |
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/sanitize_title