‘ => true,
‘edit_posts’ => true,
‘edit_others_posts’ => true,
‘edit_published_posts’ => true,
)
);
This piece of code creates a role named “editor” with specific capabilities. The capabilities are what this role is allowed to do. In this case, the role “editor” can read, edit posts, edit others posts, and edit published posts.
Was this code snippet helpful?
YesNo