Support » Plugin: Elastic Email Sender » Allow to define settings in wp-config.php

  • Allow to define settings in wp-config.php to apply them to a big multisite network and hide the settings page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Rafal


    Thanks for reporting. Sounds good, we will release the update soon.

    Plugin Contributor Rafal


    I added a switch in the settings to display a tab in the network or was only visible to the network administrator. Let me know if something like that is good for you?

    I’m using a multinetwork setup, so I need to define settings once for all the sites across all the networks.

    If you display the settings page in the network admin panel, I guess the settings would be saved for the current network, right? I want it completely global for all networks and sites.

    I just tested the new version and I see the page in the network panel. It works fine on the main site but it doesn’t work on other subsites.

    Tip to save you time: If you want to use settings saved in the sitemeta table, you shouldn’t use get_option(). If you want to use globally settings saved on the main site, you need to use switch_to_blog(1) before calling get_option() and restore_current_blog() after that to restore the blog context.

    • This reply was modified 1 year, 5 months ago by Jose Vega. Reason: Added tip
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow to define settings in wp-config.php’ is closed to new replies.