pre_category_nicename
Filters the category nicename before it is sanitized.
Use the {@see 'pre_$taxonomy_$field'} hook instead.
Usage
add_filter( 'pre_category_nicename', 'wp_kama_pre_category_nicename_filter' ); /** * Function for `pre_category_nicename` filter-hook. * * @param string $value The category nicename. * * @return string */ function wp_kama_pre_category_nicename_filter( $value ){ // filter... return $value; }
- $value(string)
- The category nicename.
Changelog
Since 2.0.3 | Introduced. |
Where the hook is called
pre_category_nicename
wp-includes/taxonomy.php 1841
$value = apply_filters( 'pre_category_nicename', $value );