Learn how to limit access to content via the REST API using the pre_get_posts() hook.
- [Instructor] All right, we are at the very end…of the tunnel where the plugin is concerned,…but there is one more pesky little detail…we need to deal with before we can move on to the app.…You've seen it already, but let me remind you.…Right now in Postman, I am authenticated…as an administrator, and that means I have full access…to all the data from all the users.…And you can see here, I'm able to access…individual tasks by calling them by ID.…However, if I change them to just say Tasks…and click Send, I get an empty array.…I would expect to see a list…of all the available tasks here.…
However, because of how we've set things up…in the back in WordPress, that is not happening.…There's a simple reason for that.…Each of the tasks that have been filed…are set to Private to restrict access…to only person who created the task,…and the editor and administrator.…All this ties back to what we did way before in this chapter…where we set up custom capabilities for each of the roles.…Well, we are able to edit the tasks properly…
- Planning the application
- Extending WordPress with a plugin
- Setting up the standalone application
- Configuring OAuth 2 in WordPress
- Building the task list view
- Building the new task view
- Creating a new task via the REST API
- Displaying conditional content
- Visualizing data using Graph.js
Skill Level Advanced
1. Plan the Application
2. Extend WordPress with a Plugin
3. Set Up the Standalone Application
Review of user flow2m 34s
4. Build the Task List View
5. Build the New Task View
6. Build the Update/View Task View
7. Bonus Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.