I developed a local plugin that syncs certain profile data from an external service. For instance "Institution". If a user edits their profile and updated Institution, their changes will be overwritten the next time the profile data is synced.
This is all fine. But I would prefer it if the user could not edit the field at all, maybe with a message about why.
I have a workable solution where I make the fields read only using javascript in my theme. But I would prefer a solution that:
- Is not javascript dependent
- Lives with my local plugin. After all, it's the plugin that knows which fields are synced, not my theme.
Any ideas? Is it possible to modify profile form markup? Specifically from a local plugin?