Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: sanitize_key

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2174
2175      /**
2176       * Filters a sanitized key string.
2177       *
2178       * @since 3.0.0
2179       *
2180       * @param string $sanitized_key Sanitized key.
2181       * @param string $key           The key prior to sanitization.
2182       */
2183      return apply_filters( 'sanitize_key', $sanitized_key, $key );
2184 }
2185
2186 /**
2187  * Sanitizes a string into a slug, which can be used in URLs or HTML attributes.
2188  *
2189  * By default, converts accent characters to ASCII characters and further
2190  * limits the output to alphanumeric characters, underscore (_) and dash (-)
2191  * through the {@see 'sanitize_title'} filter.
2192  *