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.
- // run the action
- do_action( 'added_usermeta', $wpdb_insert_id, $user_id, $meta_key, $meta_value );
- The following example is for adding a hook callback.
- // define the added_usermeta callback
- function action_added_usermeta( $wpdb_insert_id, $user_id, $meta_key, $meta_value ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'added_usermeta', 'action_added_usermeta', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'added_usermeta', 'action_added_usermeta', 10, 4 );
Defined (1)
The action is defined in the following location(s).
- /wp-includes/deprecated.php
- do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );