signup_user_meta хук-фильтр . WP 4.8.0
Filters the metadata for a user signup.
The metadata will be serialized prior to storing it in the database.
Использование
add_filter( 'signup_user_meta', 'filter_function_name_5203', 10, 4 ); function filter_function_name_5203( $meta, $user, $user_email, $key ){ // filter... return $meta; }
- $meta(массив)
- Signup meta data.
По умолчанию: empty array - $user(строка)
- The user's requested login name.
- $user_email(строка)
- The user's email address.
- $key(строка)
- The user's activation key.
Список изменений
С версии 4.8.0 | Введена. |
Где вызывается хук
signup_user_meta
wp-includes/ms-functions.php 871
$meta = apply_filters( 'signup_user_meta', $meta, $user, $user_email, $key );