Skip to content

Instantly share code, notes, and snippets.

View zgordon's full-sized avatar
🎓
Prepping a Course on Gatsby, GraphQL & WordPress

Zac Gordon zgordon

🎓
Prepping a Course on Gatsby, GraphQL & WordPress
View GitHub Profile
(function($){
var url = JP_POST_EDITOR.root;
url += 'wp/v2/posts';
function getPostsByUser( defaultID ) {
url += '?author=';
url += JP_POST_EDITOR.userID;
url += '&[per_page]=20';
$.ajax({