- You have put these labels inside the
capabilities
argument, which is incorrect. They should be inlabels
argument. - There is not
edit_posts
label, and you’re missing most labels. There’s many more labels you need to provide. They are listed here: https://developer.wordpress.org/reference/functions/get_post_type_labels/