How to WordPress create a role on the posting pages in one section only?

They want to do so to be able to the user through the admin panel to create/modify/delete only in one section, all the rest that was read-only permission as normal users.
Maybe there's some plugin, or it is done quickly with minimal php version, please help.
June 26th 19 at 13:57
1 answer
June 26th 19 at 13:59
articles_poster_role function() {
add_role(
'poster',
'Content Manager',
 [ 
 'publish_posts' => 'publish_articles', /* Publication */
 'read_post' => 'read_articles', /* Read */
 'edit_posts' => 'edit_articles', /* Edit */
 'delete_posts' => 'delete_article', /* Delete */
 'upload_files' => true, /* Download files (Media files) */
]
);
}

add_action('init', 'articles_poster_role');

Find more questions by tags WordPress