Support » Plugin: Mail Bank - #1 Mail SMTP Plugin for WordPress » Suggestion for Multisite

  • Resolved mardala


    Trying to see the logic in the installer where it loops over the entire list of blogs.

    Instead of looping over the blog ids just install for the current blog, e.g. (this is the older V1 plugin, but the same logic is in the new one)

    $blog_id = get_current_blog_id();
    if(file_exists(MAIL_BK_PLUGIN_DIR. “/lib/wp-install-script.php”))
    include MAIL_BK_PLUGIN_DIR. “/lib/wp-install-script.php”;

    Otherwise if you have thousands of sites in a multisite it times out because you are looping and trying to run the installer on every single site.

    If the intention was to make it globally installed on multisite, then you should refactor and consider having the SMTP settings the same for every site in the multisite admin.

Viewing 1 replies (of 1 total)
  • Plugin Contributor The WP Empire



    Thank you for reporting the issue.

    The code was placed here because if someone network activates the plugin, and then we need to install the tables on each site otherwise it won’t work.


    Support Team
    Tech Banker

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion for Multisite’ is closed to new replies.