Codex tools: Log in
← Return to function reference.
wp-includes/deprecated.php.This function is deprecated as of Version 3.0. Please use get_user_meta instead.
Contents |
This function returns the value of a specific metakey pertaining to the user whose ID is passed via the userid parameter.
Version 2.9.2 currently requires the use of this function despite previous notes stating that it is depreciated. Using the new fuction causes undefined function error. Below is the information I have removed.
<?php get_usermeta( $userid, $metakey ); ?>
This example returns and then displays the last name for user id 9.
<?php $user_last = get_usermeta(9,'last_name'); ?>
<?php echo('User ID 9's last name: ' . $user_last . '\n'); ?>
Since: 2.0.0