Tutorial TOC

Update wp-config.php

In this step, you will add the parseable array of variables that you exported before, as a named constant to your WordPress website’s wp-config.php file.

To update your site’s wp-config.php, proceeds as follows.

  • Retrieve a copy of your site’s wp-config.php, for example with your favorite FTP client or open it in edit-mode with a file manager of your choice.
  • Locate the line that reads /* That’s all, stop editing! Happy publishing. */.
  • Add a new line to define the new named constant WPO_OVERRIDES_1 as follows.

Please note that as soon as you added the named constant to your site’s wp-config.php file, WPO365 will detect it and “read” its IdP configuration .


define('WPO_OVERRIDES_1', array(
    'aad_resource_uri' => '00000002-0000-0000-c000-000000000000',
    'add_create_account_prompt' => false,
    'add_select_account_prompt' => false,
    [...]
    'wpo_error_saml2_error' => 'SAML authentication error.',
    'wpo_error_tampered_with' => 'Your login might be tampered with. Please contact your System Administrator.',
    'wpo_error_user_not_found' => 'Could not create or retrieve your login. Please contact your System Administrator.',
));

The name of constant is by default WPO_OVERRIDES_1. The number (in this case “1”) refers to the blog ID of the current site. If you don’t run WordPress Multisite and if you haven’t configured BLOG_ID_CURRENT_SITE then the blog ID of the current site defaults to 1.


  • Continue by saving your changes and update your website’s wp-config.php by uploading the file – for example – using your favorite FTP client.

Related Features