Changeset 51005
- Timestamp:
- 05/25/2021 05:38:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r50981 r51005 2013 2013 * 2014 2014 * @since 4.9.0 2015 * @since 5.8.0 The $userdata parameter was added. 2015 2016 * 2016 2017 * @param array $data { … … 2026 2027 * the current UTC timestamp. 2027 2028 * } 2028 * @param bool $update Whether the user is being updated rather than created. 2029 * @param int|null $id ID of the user to be updated, or NULL if the user is being created. 2030 */ 2031 $data = apply_filters( 'wp_pre_insert_user_data', $data, $update, $update ? (int) $ID : null ); 2029 * @param bool $update Whether the user is being updated rather than created. 2030 * @param int|null $id ID of the user to be updated, or NULL if the user is being created. 2031 * @param array $userdata The raw array of data passed to wp_insert_user(). 2032 */ 2033 $data = apply_filters( 'wp_pre_insert_user_data', $data, $update, ( $update ? (int) $ID : null ), $userdata ); 2032 2034 2033 2035 if ( empty( $data ) || ! is_array( $data ) ) { … … 2055 2057 * 2056 2058 * @since 4.4.0 2059 * @since 5.8.0 The $userdata parameter was added. 2057 2060 * 2058 2061 * @param array $meta { … … 2073 2076 * @type string $locale User's locale. Default empty. 2074 2077 * } 2075 * @param WP_User $user User object. 2076 * @param bool $update Whether the user is being updated rather than created. 2077 */ 2078 $meta = apply_filters( 'insert_user_meta', $meta, $user, $update ); 2078 * @param WP_User $user User object. 2079 * @param bool $update Whether the user is being updated rather than created. 2080 * @param array $userdata The raw array of data passed to wp_insert_user(). 2081 */ 2082 $meta = apply_filters( 'insert_user_meta', $meta, $user, $update, $userdata ); 2079 2083 2080 2084 // Update user meta. … … 2102 2106 * 2103 2107 * @since 2.0.0 2108 * @since 5.8.0 The $userdata parameter was added. 2104 2109 * 2105 2110 * @param int $user_id User ID. 2106 2111 * @param WP_User $old_user_data Object containing user's data prior to update. 2112 * @param array $userdata The raw array of data passed to wp_insert_user(). 2107 2113 */ 2108 do_action( 'profile_update', $user_id, $old_user_data );2114 do_action( 'profile_update', $user_id, $old_user_data, $userdata ); 2109 2115 2110 2116 if ( isset( $userdata['spam'] ) && $userdata['spam'] != $old_user_data->spam ) { … … 2134 2140 * 2135 2141 * @since 1.5.0 2142 * @since 5.8.0 The $userdata parameter was added. 2136 2143 * 2137 * @param int $user_id User ID. 2144 * @param int $user_id User ID. 2145 * @param array $userdata The raw array of data passed to wp_insert_user(). 2138 2146 */ 2139 do_action( 'user_register', $user_id );2147 do_action( 'user_register', $user_id, $userdata ); 2140 2148 } 2141 2149
Note: See TracChangeset
for help on using the changeset viewer.