wp_pre_insert_user_data

wp_pre_insert_user_data

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('wp_pre_insert_user_data') is found 1 times:

  • /wp-includes/user.php line 1789
    	 * }
    	 * @param bool     $update Whether the user is being updated rather than created.
    	 * @param int|null $id     ID of the user to be updated, or NULL if the user is being created.
    	 */
    	$data = apply_filters( 'wp_pre_insert_user_data', $data, $update, $update ? (int) $ID : null );
    
    	if ( empty( $data ) || ! is_array( $data ) ) {
    		return new WP_Error( 'empty_data', __( 'Not enough data to create this user.' ) );
    	}
    
    	if ( $update ) {