Use wp.media templates to create totally custom modal July 5, 2022 by Tarik Billa A little late but I think Extending the WordPress Media Uploader: Embed Options should work. I’m trying to do the same.