WordPress uses roles to control the capabilities of registered users. Creating custom roles means you can create new abilities for select users—here's how.
- [Instructor] In Wordpress, every registered user…is assigned a role,…and that role contains a set of capabilities.…Those capabilities in turn control what…that user can and cannot do.…In Task Book, we want to create a new role…called task logger.…This is the role we assign to anyone who…is going to use the third party app to log tasks.…And this role should have capabilities only around the task.…So they cannot go and edit posts or pages…or do anything else.…They can only work with tasks.…
We also want two other roles…to have some capabilities associated with tasks.…Those two roles are editor and administrator.…But before we get to that, we need to create that new role.…Just like with pulse types, I'm going to do this…in a separate file, so we clearly separate concerns.…So inside the includes folder I'll create a new file,…call it roles.php.…And inside this file, I'll register the new role.…
I'll do this inside a function…called taskbook_register_role.…Then I'll use the add role function to register the new role…
- 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.