I have a plugin that is syncing data from a third party service into a custom post type. The idea is that the post type acts as a slave to the third party service, so any changes there overwrite any on the wordpress site. However there will be a few extra custom fields that will be made to add information from the wordpress side to the data from the third party service.
What I am looking for is a way to more or less disable the fields that will be overwritten (title, body, 50-60 custom fields) Leaving only the ones that will not be overwritten to be editable.
I know how to hide title/body (although unsure if it completely removes them), however I feel it would be beneficial to keep them visible, just grayed out / disabled.
This is how I am disabling title/body:
function remove_edit_fields(){
remove_post_type_support( 'property_listings', 'title' );
remove_post_type_support( 'property_listings', 'editor' );
}
add_action( 'admin_init', 'remove_edit_fields' );
Is there any way to do this while keeping them visible and do the same for custom fields?