I've made a custom post type, where I want different users to only edit their posts. I've made some restrictions regarding their capabilities on the site and the posts - I don't want them to be able to edit anything other than a few textinputs and such.
For some reason I can't find a way to disable the Yoast SEO metabox on the posts - I've checked Yoast's own doc, but I haven't been able find anything regarding this besides using a plugin called User Role Editor, which doesn't work the way I need.
I've tried the snippet from this place, but it doesn't seem to work either.
TL;DR: Remove Yoast SEO on custom post type for a specific user.
You can use ADMIN MENU EDITOR PRO Plugin
With this plugin, you can choose every parts you want to display by user role in the admin.
This si the simple method.