WordPress at a glance
filter is not described

edit_user_(field) filter-hook . WP 2.9.0

Filters a user field value in the 'edit' context.

The dynamic portion of the hook name, $field, refers to the prefixed user field being filtered, such as 'user_login', 'user_email', 'first_name', etc.


add_filter( 'edit_user_(field)', 'filter_function_name_2814', 10, 2 );
function filter_function_name_2814( $value, $user_id ){
	// filter...

	return $value;
Value of the prefixed user field.
User ID.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

wp-includes/user.php 1287
$value = apply_filters( "edit_user_{$field}", $value, $user_id );

Где используется хук в ядре WP

wp-includes/default-filters.php 451
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );