Site icon Hip-Hop Website Design and Development

overwrite wordpress gallery with customized gallery shortcode

I need to overwrite the default WordPress gallery shortcode with a customized one. This as a result of I would like so as to add a area that can comprise an url for every picture I need to add inside a gallery. I am undecided the way to proceed, however for now I wrote this prototype of the code I need to use for the shortcode, I am undecided the way to proceed for the customized hyperlink area. Additionally I would like to know the way to open the media library modal to multiselect the photographs and add to the shortcode id param, the assorted ids of the photographs and their relative hyperlinks. Any suggestion or assist might be appreciated.


perform custom_gallery( $atts ){
  extract(shortcode_atts('id' => '','hyperlinks' => '')); 
  // right here I have to implement code for hyperlink and picture choice
}
add_shortcode( 'gallery', 'custom_gallery');