How can we help?

Search for answers or browse our knowledge base.

Table of Contents

How to temporarily disable 2FA on WordPress

There are cases in which you might need to temporarily disable two-factor authentication (2FA) without deactivating the WP 2FA plugin.

To do so, all you need to do is add the below directive to the wp-config.php file of your WordPress website.

define( ‘DISABLE_2FA_LOGIN, true );

You can add this directive anywhere in the wp-config.php file as long as it is above the /* That’s all, stop editing! Happy publishing. */ comment.

Enabling 2FA again

To enable back 2FA on your website change true to false in the above directive, or simply delete the directive.