post_content);
foreach ($blocks as $block) {
if ($block["blockName"] == "acf/faculty-member") {
// $FullName = $block['login_id_e'];
$login_id_e = $block["attrs"]["data"]["login_id"];
// $Designation = $block["attrs"]["data"];
}
}
}
};
$response_employeeInfo = wp_remote_post(
$employee_info_api,
array(
'body' => array(
'user_login_id' => $client_id,
'login_id' => $login_id_e,
'auth_token' => $auth_token
)
)
);
$employeeInfo = json_decode(wp_remote_retrieve_body($response_employeeInfo), true);
$Title = $employeeInfo[0]['Title'];
$FullName = $Title . ' ' . $employeeInfo[0]['FullName'];
$Designation = $employeeInfo[0]['Designation'] . ', ' . $employeeInfo[0]['Office'];
?>