Using Constants To Set Primary And Backup Integrations

If you’re setting up integrations in Gravity SMTP, you might want to lock in your primary and backup settings so they can’t be changed by mistake. You can do this by adding constants to your site’s wp-config.php file, which keeps them fixed and prevents changes from the WordPress admin.

Setting the Integration Using Constants

For detailed instructions, see the articles on setting the primary integration and setting the backup integration using constants.

How the UI Reflects Locked Settings

When primary or backup settings are defined via constants, the Gravity SMTP UI will indicate that they are locked.

Lock Icon
A lock icon will appear next to the corresponding badges on the Integrations page, the dashboard, and possibly other areas.

Image showing Primary integration set via a constant
Image showing Backup integration set via a constant

Disabled Buttons
If the “Set as Primary” and “Set as Backup” options are set via a constant, they will be greyed out.

Image showing disabled actions when the integration is set via a constant