Use WP-Config.php to override (some) config options

Usage When you check this option, the plugin will look for (some) configuration options to be provided as a global constant in your WP-Config.php (see this article for guidance on editing WP-Config.php). 

The global constant should be configured as an associative array as - for example - shown below. 

define('WPO_OVERRIDES_1', array(
    'block_email_change'            => false,
    'custom_domain'                 => array(
    'domains_x_roles'               => array(
            'key' => '',
            'value' => 'contributor',

Please note The following conventions must be followed when creating a new global constant with overrides.

  • The name of the global constant should start with "WPO_OVERRIDES_" and ends with a number that corresponds to the blog ID of your site, which generally corresponds to "1" unless you configured WordPress Multisite (for WPMU support please see details below).
  • The name of the configuration option is not documented, but can be deducted from the configuration object that you can view as JSON when you go to WP Admin > WPO365 > ... > Import / export.
  • Option names must be converted from camel case to PHP style with underscore e.g. customDomain becomes custom_domain.

Unchecking the option will instruct the plugin to ignore the global constant and instead use the values defined using the configuration pages.

Enable Mail-Staging mode

The following example shows how administrators can use WP-Config.php to enable the Mail-Staging mode.

define('WPO_OVERRIDES_1', array(
    'mail_log' => true,
    'mail_staging_mode' => true,

WordPress Multisite

If you have activated  WordPress Multisite and you have configured WPO365's dedicated mode (see this article for details) then you must enable this option for each subsite individually. You must also add a separate global constant to your WP-Config.php for each subsite for which you enabled this option. However, you must then change the name of the global constant so that the number at the end corresponds to the so-called blog ID of the subsite e.g. "WPO_OVERRIDES_2". Please note that you can identify the blog ID of a subsite if you go to My Sites > Network Admin > Sites and hover the mouse of the Edit link of the subsite in question.

Default value False


Visit the website

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us