updated_usermeta

The WordPress Core updated usermeta hook.

Description

do_action( 'updated_usermeta', (unknown) $cur_umeta_id, (unknown) $user_id, (unknown) $meta_key, (unknown) $meta_value ); 

Parameters (4)

0. $cur_umeta_id (unknown)
The cur umeta id.
1. $user_id (unknown)
The user id.
2. $meta_key (unknown)
The meta key.
3. $meta_value (unknown)
The meta value.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'updated_usermeta', $cur_umeta_id, $user_id, $meta_key, $meta_value ); 
The following example is for adding a hook callback.
  1. // define the updated_usermeta callback 
  2. function action_updated_usermeta( $cur_umeta_id, $user_id, $meta_key, $meta_value ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'updated_usermeta', 'action_updated_usermeta', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'updated_usermeta', 'action_updated_usermeta', 10, 4 ); 

Defined (1)

The action is defined in the following location(s).

/wp-includes/deprecated.php  
  1. do_action( 'updated_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );