0
/* CHECK LOGIN ON ------------------------*/
global $current_user;
$current_user = wp_get_current_user();
$user_info = get_userdata($current_user->ID);
$first_name = $user_info->first_name;
$user_email = $user_info->user_email;
$meta_value = $user_info->$meta_value;
if (in_array("administrator", $meta_value)) {
echo "é administrador"; } else {
echo "não é administrador";
} ?>
but I don’t know where the mistake is.