um_account_pre_update_profile

Hook type

Action

Description

Fired on account page, just before updating profile

Parameters

$changes

(array) Submitted data

$user_id

(int) User ID

Usage

add_action( 'um_account_pre_update_profile', 'function_name', 10, 2 );

Examples

<?php
add_action( 'um_account_pre_update_profile', 'my_account_pre_update_profile', 10, 2 );
function my_account_pre_update_profile( $changes, $user_id ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_account_pre_update_profile is located in includes/core/um-actions-account.php::line 270