Languages: English • Italiano • 日本語 (Add your language)
Add metadata to a user's record.
<?php add_user_meta( $user_id, $meta_key, $meta_value, $unique ); ?>
<?php $user_id = 1; $awesome_level = 1000; add_user_meta( $user_id, '_level_of_awesomeness', $awesome_level); ?>
Since: 3.0.0
add_user_meta() is located in wp-includes/user.php
.
add_user_meta(), delete_user_meta(), get_user_meta(), update_user_meta(), get_user_option(), delete_user_option(), update_user_option(),