user_(name)_label
Filters a user contactmethod label.
The dynamic portion of the hook name, $name, refers to each of the keys in the contact methods array.
Использование
add_filter( 'user_(name)_label', 'wp_kama_user_name_label_filter' ); /** * Function for `user_(name)_label` filter-hook. * * @param string $desc The translatable label for the contact method. * * @return string */ function wp_kama_user_name_label_filter( $desc ){ // filter... return $desc; }
- $desc(строка)
- The translatable label for the contact method.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/user-edit.php
user_(name)_label
wp-admin/user-edit.php 600
echo apply_filters( "user_{$name}_label", $desc );