sanitize_title filter-hook . WP 1.2.0
Filters a sanitized title string.
Usage
add_filter( 'sanitize_title', 'filter_function_name_1969', 10, 3 ); function filter_function_name_1969( $title, $raw_title, $context ){ // filter... return $title; }
- $title(string)
- Sanitized title.
- $raw_title(string)
- The title prior to sanitization.
- $context(string)
- The context for which the title is being sanitized.
Changelog
Since 1.2.0 | Introduced. |
Where the hook is called
sanitize_title
wp-includes/formatting.php 2187
$title = apply_filters( 'sanitize_title', $title, $raw_title, $context );
Where in WP core the hook is used WordPress
wp-includes/formatting.php 249
add_filter( 'sanitize_title', 'sanitize_title_with_dashes', 10, 3 );