um_before_update_profile

Hook type

Filter

Description

Change update profile changes data

Parameters

$changes

(array) User Profile Changes

$user_id

(int) User ID

Usage

<?php add_filter( 'um_before_update_profile', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_before_update_profile', 'my_before_update_profile', 10, 2 );
function my_before_update_profile( $changes, $user_id ) {
    // your code here
return $changes;
}
?>

Change Log

Since: 2.0

Source

um_before_update_profile is located in includes/core/class-user.php::line 1594