Get particular user meta data by user ID address in WordPress

Here is a quick snippet to get particular user meta data by $user_id in WordPress. The following code will print particular user meta data for particular user.

$key = 'you_key_name';
$single = true;
$meta_value = get_user_meta( $user_id, $key, $single );
echo $meta_value;

Have any doubt, then comment here!

Get all user meta data by user email address in WordPress

Here is a quick snippet to get all user meta data by email address in WordPress. The following code will print all user meta data for given email address in wordpress.

$user = get_user_by( 'email', $email_address );
$user_id=$user->ID;
$all_meta_for_user = get_user_meta( $user_id );
print_r( $all_meta_for_user );

Have any doubt, then comment here!

Get all user meta data by user id in WordPress

Here is a quick snippet to get all user meta data by user_id in WordPress. The following code will print all user meta data for particular user.

$all_meta_for_user = get_user_meta( $user_id );
print_r( $all_meta_for_user );

Have any doubt, then comment here!