WordPress hook directory
sanitize_title

Description

Applied to a post title by the sanitize_title function, after stripping out HTML tags.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for sanitize_title

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.2.1 wp-includes/functions-formatting.php 123 View in context action
1.5.2 wp-includes/functions-formatting.php 270 View in context filter
2.0 wp-includes/functions-formatting.php 274 View in context filter
2.0.11 wp-includes/functions-formatting.php 300 View in context filter
2.1 wp-includes/formatting.php 318 View in context filter
2.2 wp-includes/formatting.php 316 View in context filter
2.3 wp-includes/formatting.php 324 View in context filter
2.5 wp-includes/formatting.php 334 View in context filter
2.6 wp-includes/formatting.php 340 View in context filter
2.7 wp-includes/formatting.php 483 View in context filter
2.8 wp-includes/formatting.php 662 View in context filter
2.9 wp-includes/formatting.php 763 View in context filter
3.0 wp-includes/formatting.php 795 View in context filter
3.1 wp-includes/formatting.php 808 View in context filter
3.2 wp-includes/formatting.php 797 View in context filter
3.3 wp-includes/formatting.php 830 View in context filter
3.4 wp-includes/formatting.php 929 View in context filter
3.5 wp-includes/formatting.php 942 View in context filter
3.6 wp-includes/formatting.php 957 View in context filter
3.7 wp-includes/formatting.php 957 View in context filter
3.8 wp-includes/formatting.php 1022 View in context filter
3.9 wp-includes/formatting.php 1082 View in context filter
4.0 wp-includes/formatting.php 1205 View in context filter
4.1 wp-includes/formatting.php 1223 View in context filter
4.2 wp-includes/formatting.php 1276 View in context filter
4.3 wp-includes/formatting.php 1467 View in context filter
4.4 wp-includes/formatting.php 1531 View in context filter
4.5 wp-includes/formatting.php 1535 View in context filter
4.6 wp-includes/formatting.php 1913 View in context filter
4.7 wp-includes/formatting.php 1924 View in context filter
4.8 wp-includes/formatting.php 1931 View in context filter
4.9 wp-includes/formatting.php 1945 View in context filter
5.0 wp-includes/formatting.php 1945 View in context filter
5.1 wp-includes/formatting.php 2170 View in context filter

Related Hooks

We find related hooks using word stems. sanitize_title has 2 significant word stem(s): sanitize, title. Note that some of the hooks below may not appear in all versions of WP.