Skip to content

Instantly share code, notes, and snippets.

@SamWSoftware
Last active July 31, 2018 06:34
Show Gist options
  • Save SamWSoftware/5e70419af4ece03f5158d0edcc2cad68 to your computer and use it in GitHub Desktop.
Save SamWSoftware/5e70419af4ece03f5158d0edcc2cad68 to your computer and use it in GitHub Desktop.
<h1>wordpress checker</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="getWordpress.js"></script>
console.log("this is a proof of concenpt");
$.get(
"https://public-api.wordpress.com/rest/v1/sites/YourSite.wordpress.com/posts",
function(response) {
console.log(response);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment