apply_filters( 'insert_custom_user_meta', array $custom_meta, WP_User $user, bool $update, array $userdata )

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.

Top ↑



(array) Array of custom user meta values keyed by meta key.


(WP_User) User object.


(bool) Whether the user is being updated rather than created.


(array) The raw array of data passed to wp_insert_user().

Top ↑


File: wp-includes/user.php

View on Trac

Top ↑


Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.