There’s a million tutorials for how to customize the TinyMCE panel on the WSYWIG editor… but that’s not what I want to do.
I want to add a stand-alone button to the post edit view that will make an API call and auto-fill certain fields on the page. I closest I’ve come so far are the hooks simple_edit_form
and advanced_edit_form
which both allow me to add content to the very bottom of the edit form. It’d be much better to add it at the top, where the “add media” button lives.
Is this possible?
There is an action called media buttons. Below is basic example. I’ve take this example from the plugin gravity forms and changed it little. Good luck.