Title: define DISABLE code not working
Last modified: September 11, 2018

---

# define DISABLE code not working

 *  Resolved [maniacmedia](https://wordpress.org/support/users/maniacmedia/)
 * (@maniacmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/)
 * After trying in vain to get TFA working properly, I had the code, define(‘TWO_FACTOR_DISABLE’,
   true); added to the wp-config.php. Cleared the browser cache and restarted the
   browser. The browser now just loops back to the log in screen with the message“
   Error: The one-time password (TFA code) you entered was incorrect.”
 * Any suggestions on how I can access my blog?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10678392)
 * Where did you add it? Any defines (not just for this plugin, but for any) at 
   the end of the file don’t take effect because execution never reaches them.
 *  Thread Starter [maniacmedia](https://wordpress.org/support/users/maniacmedia/)
 * (@maniacmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10678404)
 * Unfortunately, I don’t have direct FTP access so I have no idea if it was added
   to the end of the file. So it needs to add at the beginning?
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10678536)
 * It just needs to be before the line that’s normally at the end of wp-config.php
   that switches execution.
 *  Thread Starter [maniacmedia](https://wordpress.org/support/users/maniacmedia/)
 * (@maniacmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10678727)
 * That did it. Thanks.
 *  [Digitalberg](https://wordpress.org/support/users/qamarqrsh/)
 * (@qamarqrsh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10728638)
 * Can you please send me a screenshot, as I’m straggling over two days now.
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10728666)
 * [https://snag.gy/FJmk2a.jpg](https://snag.gy/FJmk2a.jpg)
 *  [Digitalberg](https://wordpress.org/support/users/qamarqrsh/)
 * (@qamarqrsh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10729076)
 * Thanks for the quick response David, however still prompting to put the two-factor
   code.
 * Any alternate to disable this plugin?
 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10730011)
 * Hi,
 * Are you sure you have this plugin and not a different one?
 * You can also put the line `return;` on the line immediately after the opening`
   <?php` in a plugin’s main file in its directory in `wp-content/plugins` to effectively
   disable it.
 * David
 *  Thread Starter [maniacmedia](https://wordpress.org/support/users/maniacmedia/)
 * (@maniacmedia)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10730088)
 * I was able to disable and delete from Chrome, but not from Firefox. Ultimately
   had to delete because my hosting provider didn’t have all necessary php files
   available.
 * Thank you for your assistance.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘define DISABLE code not working’ is closed to new replies.

 * ![](https://ps.w.org/two-factor-authentication/assets/icon-256x256.png?rev=1116775)
 * [Two Factor Authentication](https://wordpress.org/plugins/two-factor-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor-authentication/reviews/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)

 * 9 replies
 * 3 participants
 * Last reply from: [maniacmedia](https://wordpress.org/support/users/maniacmedia/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/define-disable-code-not-working/#post-10730088)
 * Status: resolved