Very nice! shortcode was the keyword I needed. It allowed me do find the file wp_includes/shortcodes.php and I added at the end:
add_shortcode('solarweb', function() {
$json = file_get_contents("https://api.solarweb.com/swqapi/info/release");
$result = json_decode($json);
$version = $result->releaseVersion;
$date = $result->releaseDate;
return "<div>$version</div><div>$date</div>";});
Probably not the correct way to add new shortcodes, but for now this will do. Thanks.
-
This reply was modified 1 year, 5 months ago by allocater.