How to customise the output of the WP image gallery shortcode from a plugin?
There’s two ways you can go about this, but both involve creating a function that does pretty much the same as the existing gallery shortcode function… You can either.. Hook onto post_gallery and manipulate the incoming data(you can use the gallery shortcode function as a base for the filter if necessary) Unregister the gallery shortcode … Read more