Handy iThemes Security Constants

Handy iThemes Security Constants

Heads up: This page may include affiliate links. Read the full disclosure.

iThemes Security plugin is an easy to use security plugin for your child sites. One of the lesser known things about iThemes Security is that the plugin includes a number of constants, which can be added to your child site’s wp-config.php file to set certain things on or off.

MainWP has an amazing code snippets extension, which allows you to set constants from the MainWP Dashboard site. This means that any of these constants for iThemes Security plugin can easily be saved to any connected child sites.

If you had issues with emails being sent from iThemes Security plugin, or database logs not clearing, you can set this constant;

define(‘ITSEC_USE_CRON’, true);

If you have renamed wp-login.php to a custom login URL, but the URL is not working, you can set this constant to disable all security modules;

define('ITSEC_DISABLE_MODULES', true);

If you were running into issues with the two-factor feature in iThemes Security plugin and wanted to turn off the two-factor module, you can set this constant;

define('ITSEC_DISABLE_TWO_FACTOR', true);

If you want to disable the inactive user notification you can set this constant;

define('ITSEC_DISABLE_INACTIVE_USER_CHECK', true);

Also, if using iThemes Security Pro and you needed to enable the debug menu, you can set this constant;

define(‘ITSEC_DEBUG’, true);

If you are using the iThemes Security plugin on your child sites, these handy restraints will allow you to easily turn specific functions and features off, by only saving a constant using the MainWP Code Snippets Extension, then having that constant saved to the child site.

The code snippets GitHub repo for MainWP also contains the constants for setting those as false, so the constant would be used.

1 thought on “Handy iThemes Security Constants”

Comments are closed.

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.