In my code i have a custom post type job.I created a role called job manager.Now i want to give permissions to add,edit ,delete a job for job manager.Only he can access job post type.hoe w to achieve this....
I tried to create job manager role by following code
function add_job_manager_role(){
add_role(
'job_manager',
'Job Manager',
array(
'read' => true,
'edit_posts' => false,
'delete_posts' => false,
'publish_posts' => false,
'upload_files' => true
)
);
}
add_action( 'admin_init', 'add_job_manager_role', 4 );
how to give permissions to job manager to add ,delete,edit custom post type job
any help greatly appreciated .Thanks in advance ....