pre_user_(field) хук-фильтр . WP 2.9.0
Filters the value of a user field in the 'db' 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( 'pre_user_(field)', 'filter_function_name_1577' ); function filter_function_name_1577( $value ){ // filter... return $value; }
- $value(смешанный)
- Value of the prefixed user field.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/user.php 1495
$value = apply_filters( "pre_user_{$field}", $value );