pre_category_nicename
Filters the category nicename before it is sanitized.
Use the {@see 'pre_$taxonomy_$field'} hook instead.
Использование
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(строка)
- The category nicename.
Список изменений
С версии 2.0.3 | Введена. |
Где вызывается хук
pre_category_nicename
wp-includes/taxonomy.php 1833
$value = apply_filters( 'pre_category_nicename', $value );