for the requirement you wrote (shows an error when the fields "Title" and "Year" are left empty) you just need to trigger your plugin as post sync on both fields and use a single post image containing these two fields. in your plugin you get the fields from the post image and if one of them is empty then you show the error.
↧