Filters a user’s custom meta values and keys immediately after the user is created or updated and before any user meta is inserted or updated.
For non-custom meta fields, see the ‘insert_user_meta’ filter.
$custom_metaarray
$userWP_User
$updatebool
$userdataarray
ID intuser_pass stringuser_login stringuser_nicename stringuser_url stringuser_email stringdisplay_name stringnickname stringfirst_name string$display_name is not specified.last_name string$display_name is not specified.description stringrich_editing string'true' or 'false' as a string literal, not boolean. Default 'true'.syntax_highlighting string'true' or 'false' as a string literal, not boolean. Default 'true'.comment_shortcuts string'true' or 'false' as a string literal, not boolean. Default 'false'.admin_color string'fresh'.use_ssl booluser_registered stringuser_activation_key stringspam boolshow_admin_bar_front string'true' or 'false' as a string literal, not boolean. Default 'true'.role stringlocale stringmeta_input array$custom_meta = apply_filters( 'insert_custom_user_meta', $custom_meta, $user, $update, $userdata );
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/insert_custom_user_meta