Thanks for your question.
The [mla_gallery] shortcode supports the ids= parameter, which accepts the comma-separated string you want to supply. From PHP code you can use the “mla_gallery_attributes” or “mla_gallery_arguments” hooks to add your parameter to an existing [mla_gallery] shortcode. Of course, you will have to find a way to modify just the shortcodes you want and ignore the others. I often use something like [mla_gallery add_ids=true ... ] for this, replacing the add_ids=true parameter with an ids=1,2,3 parameter.
You could also define your own shortcode and then use the do_shortcode( "[mla_gallery ... function with whatever parameters you need.
I hope that helps. I am marking this topic resolved, but please update it if you have problems or questions regarding the above suggestions.
Thread Starter
alx359
(@alx359)
Thanks, David! Think I understand what you mean and do some tests with these.