Filter hook 'insert_custom_user_meta'
in WP Core File wp-includes/user.php at line 2468
Description
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 {@see 'insert_user_meta'} filter.
Occurrences
Filename |
Line Number |
wp-includes/user.php |
2468 |
Parameters
Type |
Name |
Description |
array |
$custom_meta |
Array of custom user meta values keyed by meta key. |
WP_User |
$user |
User object. |
bool |
$update |
Whether the user is being updated rather than created. |
array |
$userdata |
The raw array of data passed to wp_insert_user(). |
PHP Doc
/**
* 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 {@see 'insert_user_meta'} filter.
*
* @since 5.9.0
*
* @param array $custom_meta Array of custom user meta values keyed by meta key.
* @param WP_User $user User object.
* @param bool $update Whether the user is being updated rather than created.
* @param array $userdata The raw array of data passed to wp_insert_user().
*/