pre_category_nicename filter-hookWP 2.0.3

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

sanitize_term_field()
pre_category_nicename
wp-includes/taxonomy.php 1815
$value = apply_filters( 'pre_category_nicename', $value );

Where the hook is used in WordPress

Usage not found.