Hi @chris-yau,
Sorry for the late reply but we have been on holidays.
This is not possible but you can create a shortcode to show this and include it in your functions.php or in a custom plugin. This code should work:
function apa_display_server_info() {
$output = "<p><strong>Server IP Address:</strong>" . $_SERVER['SERVER_ADDR'] . "<br><strong>Server Name:</strong>" . $_SERVER['SERVER_NAME'] . "</p>";
return $output;
}
add_shortcode('server_info', 'apa_display_server_info');
To show it on the front end you only have to include the shortcode [server_info]
where you want the information to appear.
We just coded this in 5 minutes but it should do what you want. If you have any problems, please let us know.
Best regards from Spain.
-
This reply was modified 3 months, 1 week ago by apasionados. Reason: made code shorter