update_usermeta
The WordPress Core update usermeta hook.
Description
do_action( 'update_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.
- // run the action
- do_action( 'update_usermeta', $cur_umeta_id, $user_id, $meta_key, $meta_value );
- The following example is for adding a hook callback.
- // define the update_usermeta callback
- function action_update_usermeta( $cur_umeta_id, $user_id, $meta_key, $meta_value ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'update_usermeta', 'action_update_usermeta', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'update_usermeta', 'action_update_usermeta', 10, 4 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/deprecated.php
- do_action( 'update_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );