Developer
Hooks
This category contains the available hooks that are available to developers within Gravity SMTP in order to extend its functionality.
Constants
This category contains a list of the constants that can be set within the wp-config.php file of your WordPress installation.
Articles
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.
Mailtrap Constants
When set, these optional constants will override settings for the Mailtrap Integration in Gravity SMTP. Default values are shown.
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_before_email_send
Fires before an email is sent through Gravity SMTP. This action allows you to perform custom logic before the email sending process begins.
gravitysmtp_on_primary_failure
The gravitysmtp_on_primary_failure action lets you run custom code when the primary mail sending attempt fails.
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.