Codex tools: Log in / create account
Contents |
Removes a user meta record from the wp_usermeta database table for a specific user ID.
<?php delete_usermeta($user_id, $meta_key, $meta_value); ?>
<?php if (delete_usermeta(7, 'first_name')) {
echo 'User meta key successfully removed!';
} else {
echo 'User meta record could not be removed!';
} ?>
This article is marked as in need of editing. You can help Codex by editing it.