I am modifying the gallery_shortcode() function from media.php using a plugin.
How do I make my custom gallery structure show up as the preview on the edit page. I want to change how it displays in this image:
If you inspect this element the gallery preview is inside a wpview div but I cant seem to find where this is generated.
I am using the classic editor. I want to add some css selectors and html tags based on some custom attachment variables. I will likely eventually work on the block editor as well.
I already did this to the actual display of the published gallery, but need some of the elements to show in the editor as well.