added_usermeta

The WordPress Core added usermeta hook.

Description

do_action( 'added_usermeta', (unknown) $wpdb_insert_id, (unknown) $user_id, (unknown) $meta_key, (unknown) $meta_value ); 

Parameters (4)

0. $wpdb_insert_id (unknown)
The wpdb insert 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( 'added_usermeta', $wpdb_insert_id, $user_id, $meta_key, $meta_value ); 
The following example is for adding a hook callback.
  1. // define the added_usermeta callback 
  2. function action_added_usermeta( $wpdb_insert_id, $user_id, $meta_key, $meta_value ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'added_usermeta', 'action_added_usermeta', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'added_usermeta', 'action_added_usermeta', 10, 4 ); 

Defined (1)

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

/wp-includes/deprecated.php  
  1. do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );