WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
114 | } |
115 | $string = strtr($string, $chars['in'], $chars['out']); |
116 | $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254)); |
117 | $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th'); |
118 | $string = str_replace($double_chars['in'], $double_chars['out'], $string); |
119 | return $string; |
120 | } |
121 |
|
122 | function sanitize_title($title) { |
123 | $title = do_action('sanitize_title', $title); |
124 |
|
125 | return $title; |
126 | } |
127 |
|
128 | function sanitize_title_with_dashes($title) { |
129 | $title = remove_accents($title); |
130 | $title = strtolower($title); |
131 | $title = preg_replace('/&.+?;/', '', $title); // kill entities |
132 | $title = preg_replace('/[^a-z0-9 _-]/', '', $title); |