Developer

Articles

GRAVITYSMTP_SETUP_WIZARD_SHOULD_DISPLAY

Setting this constant will suppress the Gravity SMTP setup wizard, preventing it from appearing when the plugin is first installed.

GRAVITYSMTP_ENABLED_EXPERIMENTAL_FEATURES

The GRAVITYSMTP_ENABLED_EXPERIMENTAL_FEATURES constant allows you to enable or disable experimental features in Gravity SMTP.

GRAVITYSMTP_INTEGRATION_PRIMARY

For advanced configurations and multisite setups, you can define a Primary integration for Gravity SMTP using constants.

GRAVITYSMTP_INTEGRATION_BACKUP

For advanced configurations and multisite setups, you can define a Backup integration for Gravity SMTP using constants.

gravitysmtp_after_email_suppressed

Fires after an email has been successfully suppressed in the Gravity SMTP suppression list. The gravitysmtp_after_email_suppressed action allows you to perform custom logic after adding an email to the suppression database.

gravitysmtp_managed_email_types

The gravitysmtp_managed_email_types allows developers to modify or extend the list of managed email types by adding their own custom types.

gravitysmtp_feature_flag

The gravitysmtp_feature_flag allows developers to disable features in Gravity SMTP.

gravitysmtp_delete_log_on_deactivate

The gravitysmtp_delete_log_on_deactivate filter allows developers to control whether the debug log should be deleted when debug logging is disabled.

Microsoft Constants

When set, these optional constants will override settings for the Microsoft 365 / Outlook Integration in Gravity SMTP.

Using Constants To Hide Your Sensitive Settings

By using constants in your site’s wp-config.php file, you can securely store this information outside the WordPress admin interface.