Make WordPress Core

Ticket #31549: 31549.diff

File 31549.diff, 424 bytes (added by tharsheblows, 10 years ago)

add filter to meta array in wp_insert_user

  • src/wp-includes/user.php

     
    19131913
    19141914        $user = new WP_User( $user_id );
    19151915
     1916        $meta = apply_filters('insert_user_meta', $meta, $user);
     1917       
    19161918        // Update user meta.
    19171919        foreach ( $meta as $key => $value ) {
    19181920                update_user_meta( $user_id, $key, $value );