insert_custom_user_meta

insert_custom_user_meta

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('insert_custom_user_meta') is found 1 times:

  • /wp-includes/user.php line 2480
    2476
    2477
    2478
    2479
    2480
    2481
    2482
    2483
    2484
    2485
    2486
    * @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 ) {