You can def do this with the MetaEdit API.
I did something similar and explained it in this post, hope this might help you out 
What I did is basically add a
emoji to my frontmatter habits to finish them off in my daily notes using a button (buttons plugin)
Because I want it clean and automatically with buttons since you can create them anywhere, there’s quite a lot to it.
You can check it out here: