
I recently had the incredible opportunity to attend WordCamp US 2023, marking my second WordCamp experience after visiting Greece this past June. What I love about WordCamps is the freedom to choose from a variety of talks and workshops that resonate with your interests. The atmosphere is incredibly open, making it easy to start conversations […]
In this write-up, we talk about recent performance improvements that we did on WordPress 6.3, sharing both our findings and journey. While this post will mostly be around performance improvements at the code level, we want to emphasize that when we write code, we first want it to be readable, correct, secure, and only after that, performant. […]
At Automattic, no career path is cast in stone. There are no hindrances or rules against moving to different departments and even roles. What matters are demonstrated abilities. There are also a lot of conducive elements that encourage personal development. At Automattic, the first sentence of our creed is “I will never stop learning.” Happiness […]
Reblogged this on Hew.vc and commented:
Super exciting. The scale you can reach here as a developer is mind-boggling.
Reblogged this on Jeremy Herve.
QUESTION: is there a link that explains why REST API can be useful and show examples? This sounds like something that would be a valuable tool but Google searches take me to technical explanations.
It’s like I’m trying to find out about uses for a jackhammer and everything is telling me about air pressure, vibration, and safety precautions. But nothing plainly stating. “This is for busting up concrete when you need to get at piping underneath, or need to remove a section of bad road to repave it.”
HELP?
The REST API is provided specifically for developers to be able to programmatically interact with WordPress.com/Jetpack-powered blogs (e.g. via raw data, rather than going to a webpage etc). It can be used for all sorts of things, including editing posts in a different interface, creating new posts based on user input in your own application, loading the content from a site, Following and Liking posts, etc. What it’s used for is kind of up to the developers who choose to use it 🙂
More than a little confused how this works with a self hosted site.
– Is everything still going through the wordpress.com public API – which then access our self hosted site (via Jetpack link)?
– Is user authentication, authenticating against accounts that have been created on our own site, or is it just authenticating users who have wordpress.com accounts?
– Any plans to release a rest api for wordpress.org self hosted sites that allows them to operate independently of wordpress.com?
The public JSON API is not working at all for my self-hosted site with JetPack installed and connected. Is there a tutorial that explains this? Also, the sites not hosted at the domain root. its in a subdirectory: site.com/folder/wordpress
Can you try URLencoding the site url? Since there are slashes in it it needs to be encoded.
Thanks! I was looking for the same thing – URL encoding does the trick.
I did not see this in the documentation: is it possible to get data for wordpress PAGES? Also, what about data that may be used by a plug-in, widget and so on?
There is some great potential for using WP as the back-end for some great website experiences. I am excited to experiment!
You can get pages by making a request to the /sites/$site/posts/ endpoint, with the
type
parameter set topage
.Most plugins/themes store their preferences as options, which we currently don’t expose via the API, but we’re looking at the best way to do that.
Possible to use this with ajax? Looks like even with self-hosted sites, you have CORS issues. How do you set the access-control-allow-origin header to make use of this? Setting a header at the beginning of response in my child theme does not make it into the response from the public api call. However, the filters in my child theme do effect the response and work great…
Alex,
Keep an eye out for a post on https://developer.wordpress.com this week. There will be CORS support and Implicit Authorization for browsers.
Until then – you can make JSONP calls (GET only) to most endpoints.
what is the username and password?
https://developer.wordpress.com/wp-login.php
If you are logging into to create apps, this is your WordPress.com username and password.