Obviously, if the Username is the users email address, there’s a good chance you’re exposing information that they probably want to keep private. In the following example, you can clearly see user details, including their Username (in the example link below, the ‘slug’ is the user’s Username). I’d suggest that you might want to rethink this practice. When you run a membership website, some site owners like to use their members email address as their username. Also, most feeds only show an excerpt, rather than all the content) (And yes, you could get some content previously by simply using the RSS Feed, but nowhere to this extent and certainly not as easily. Using the new REST API endpoints, it’s now super easy to grab content from anyone’s WordPress site, which may or may not be a good thing. For the Non-Developersįor all you non-developers out there, there’s some REST API functionality that I think you might be interested in knowing, in regards to how it’s affected your site (assuming you’ve updated to WordPress 4.7). There’s also heaps of development resources over on the REST API Website. If you’re interested in working with the new API, make sure you check out the REST API Handbook and the REST API Reference over on. It’s going to provide the foundation for some innovative new ways in which to use WordPress over the coming years. The WP REST API is a fantastic new addition for WordPress and one which the REST API team have worked extremely hard over the past few years, getting into core. This enables API management of key site content values that are technically stored in options, such as site title and byline. Settings: Read and write access to settings, on an opt-in basis from plugins and core.Meta: Read and write access to metadata for posts, comments, terms, and users, on an opt-in basis from plugins.This includes public access to some data for post authors. Users: Read and write access to all user data.Terms: Read and write access to all term data.Comments: Read and write access to all comment data.Posts: Read and write access to all post data, for all types of post-based data, including pages and media.These endpoints support all of the following: These endpoints provide machine-readable external access to your WordPress site with a clear, standards-driven interface, allowing new and innovative apps for interacting with your site. To quote Ryan McCue, the lead developer on the REST API team and also the original developer of the REST API proof-of-concept The foundation for the WP REST API has been in core since WP 4.4, and 4.7 sees Part 2 of the REST API Content Endpoints being added. With the release of WordPress 4.7 this week, comes the addition of the WP REST API endpoints for posts, comments, terms, users, meta, and settings.
0 Comments
Leave a Reply. |