user_(name)_label filter-hookWP 2.9.0

Filters a user contactmethod label.

The dynamic portion of the hook name, $name, refers to each of the keys in the contact methods array.

Usage

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(string)
The translatable label for the contact method.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

In file: /wp-admin/user-edit.php
user_(name)_label
wp-admin/user-edit.php 594
echo apply_filters( "user_{$name}_label", $desc );

Where the hook is used in WordPress

Usage not found.