Thanks for your question and for the detailed description of your application.
I don’t have a copy of the Paid Membership Pro plugin and I hope you understand that I cannot afford to purchase premium plugins and themes simply to support my own free plugin. However, I can think of two possible solutions for your application.
First, can you tell me if the plugin filters the results of the built-in WordPress [gallery]
shortcode? If so, you might be able to use MLA’s “Support for Other Gallery-generating Shortcodes” to accomplish your task. You can try simply adding mla_alt_shortcode=gallery
to your existing shortcode(s) to see if that works. More information can be found in the “Support for Other Gallery-generating Shortcodes” section of the Settings/Media Library Assistant Documentation tab.
If that does not solve your problem you can try developing a small custom plugin that filters the results returned by the [mla_gallery]
shortcode, using the many hooks MLA provides for that purpose. This will require some PHP coding based on how Paid Membership Pro works. You may be able to adapt one of MLA Example Plugins for your task To find it, navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “user” in the text box and click “Search Plugins” to filter the table.
You are looking for the “MLA Login-filtered Gallery Example” plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and verify the example plugin as you would any other plugin. You can also click the “View” action if you just want to have a look at the source code.
The “MLA Login-filtered Gallery Example” plugin was developed for an earlier support topic you might also find useful:
exclude some files for non subcribed users
The earlier topic includes an alternate solution for a similar task.
I hope that gets you started on a solution for your application. I am marking this topic resolved, but please update it if you have problems or further questions regarding the above suggestions. Thanks for your interest in the MLA plugin.