From the course: Building a Headless WordPress App with REST API
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Create new capabilities
From the course: Building a Headless WordPress App with REST API
Create new capabilities
- In WordPress, the way we control who can do what is by assigning each user a role, and then giving each role a different set of unique capabilities. So when you get to WordPress out of the box, WordPress has a set of different roles with different capabilities, subscriber, contributor, author, editor, and administrator, where administrator can do everything, a subscriber can only edit their own profile. What we want to do now is create a new role, with it's new set of custom capabilities, and we want to create a set of custom capabilities that target the new custom posttype. So that means we are now adding what's know as meta capabilities, that are different from the capabilities that come with WordPress out of the box. So not only do we have to assign those capabilities to the new Task Logger role, but we also have to assign them to any role that may also need to interact with those tasks. And that includes the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.