A plugin + site setting should do the trick.
Maybe try the validate_post hook, add a custom validation that returns “no good” if the site setting sets it to readonly.
A plugin + site setting should do the trick.
Maybe try the validate_post hook, add a custom validation that returns “no good” if the site setting sets it to readonly.