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

Create new capabilities

From the course: Building a Headless WordPress App with REST API

Start my 1-month free trial

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…

Contents