• Resolved Luiz Araújo

    (@infolu)


    Hello, I found a lot of your plugin plugin, I wonder if it is prepared for an integration inside another plugin example the metabox.io that allows, loading it as dependency inside a folder of another plugin
    Type: require_once (‘myplugin / addons / autoremove-attachments / autoremove-attachments.php’);
    Without errors in this type of loading?

    Another doubt has a number of sites managed with infinitwp, and I would like to load the plugin in all, but it is possible to enter site by site and click (Accept Restrictions) is there any way to accept Accept Restrictions including some filter previously added in the themes Already installed for example? Thus dispensing with the time I load your plugin click Accept Restrictions?

    Thanks in advance for the plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Eusebiu Oprinoiu

    (@eusebiuoprinoiu)

    Hello!

    The plugin should work without issues when you load it as a dependency in another plugin. Just make sure it’s not loaded multiple times on the same website because this might cause unexpected issues.
    As for accepting the restrictions automatically, add this snippet of code somewhere in your master plugin.
    https://pastebin.com/chUwfdXQ

    Best regards,
    Eusebiu Oprinoiu

Viewing 1 replies (of 1 total)
  • The topic ‘Loading it as dependency’ is closed to new replies.