array(
'user_login_id' => 'api_user',
'login_id' => $login_id,
'auth_token' => 'api_user20230419045143'
)
)
);
$data = json_decode(wp_remote_retrieve_body($response), true);
// foreach ($data as $query) {
// $EmployeeID = $query['EmployeeID'];
// }
echo '
';
// if (!empty($logo)) {
// echo wp_get_attachment_image($logo['ID'], 'thumbnail', null, array('class' => 'portfolio-logo alignleft'));
// }
if (!empty($login_id)) {
echo '
Faculty Member Information (Read only)
';
echo '
';
foreach ($data[0] as $key => $value) {
echo "- " . $key . " : " . $value . "
\n";
}
} else {
echo 'Please insert Login ID of the faculty member
';
}
// var_dump($data[0]);
// print_r($data);
echo '
';