Skip to content

Instantly share code, notes, and snippets.

@jonathanbossenger
Last active August 31, 2023 14:54
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jonathanbossenger/d96520acd6225ea969f091752a3bca8b to your computer and use it in GitHub Desktop.
Save jonathanbossenger/d96520acd6225ea969f091752a3bca8b to your computer and use it in GitHub Desktop.
A simple PHP "test bed" script to learn about WordPress functionality
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Learn WordPress</title>
</head>
<body style="margin: 2em;">
<h1>Learn WordPress</h1>
<div>
<?php
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
$sitename = get_option('blogname');
echo "Hello " . $sitename . '!';
?>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment