Using HasCustomFields in a plugin

Great! :tada: If you can think of a way to make it more generic then that would certainly be PR-welcome.