insert_custom_user_meta

insert_custom_user_meta

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('insert_custom_user_meta') is found 1 times:

  • /wp-includes/user.php line 2480
    	 * @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().
    	 */
    	$custom_meta = apply_filters( 'insert_custom_user_meta', $custom_meta, $user, $update, $userdata );
    
    	$meta = array_merge( $meta, $custom_meta );
    
    	if ( $update ) {
    		// Update user meta.
    		foreach ( $meta as $key => $value ) {