How to add custom front matter content and append it to the end after exporting?

I think this has been brought up a couple of times before but I don't think there has been any action taken on it.

See: Ability to add arbitrary properties to Note Properties, and hence Markdown frontmatter and Feature request/discussion: Custom API metadata.

The Plugin API supports extra field storage but I don't think these are currently used by the frontmatter importer/exporter.