Title: Remove 2FA Completely
Last modified: June 15, 2022

---

# Remove 2FA Completely

 *  Resolved [Anthony Darter](https://wordpress.org/support/users/adarter/)
 * (@adarter)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-2fa-completely/)
 * Is there a way to 100% remove 2FA from the Wordfence plugin?
    I prefer no mention
   of 2FA on any page our users can see. Not even a message that displays that 2FA
   is disabled either.
 * Remove all mention of it on
    profile.php users.php user-edit.php
 * Right now it says, “Application passwords have been disabled by Wordfence”. I
   prefer to hide this. Do you have a hook or filter to remove this?
 * I’ve looked over the plugin code for “Remove WordFence 2FA” and it does solve
   some of my problems.
    “[https://wordpress.org/plugins/remove-wordfence-2fa/&#8221](https://wordpress.org/plugins/remove-wordfence-2fa/&#8221);
    -  This topic was modified 3 years, 11 months ago by [Anthony Darter](https://wordpress.org/support/users/adarter/).

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

 *  Thread Starter [Anthony Darter](https://wordpress.org/support/users/adarter/)
 * (@adarter)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-2fa-completely/#post-15740965)
 * I currently have to do something like this
 *     ```
       // stop wordfence onChange event.
       // removes "Application passwords have been disabled by Wordfence" when the user changes the role select.
       jQuery('#createuser #role').off('change');
       ```
   
 *     ```
       // removes the table if it contins the string 'Wordfence'
       // removes 2FA Grace Period checkbox table row
       jQuery("#your-profile table:contains('Wordfence')").remove();
       ```
   
 * and it seems unreliable.
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-2fa-completely/#post-15742885)
 * Hi [@adarter](https://wordpress.org/support/users/adarter/), thanks for getting
   in touch.
 * Aside from the two examples given above which have been requested by customers
   before, which other specific instances of 2FA being mentioned would you like 
   to remove? Please feel free to show me with screenshots using a service like 
   [Snipboard](https://snipboard.io/), as the links can be pasted here.
 * 2FA can only be fully disabled in Wordfence in terms of functionality, and some
   display elements may remain, but hopefully using the type of methods above we
   can come to a solution with the other sections you wish to hide.
 * Thanks,
 * Peter.
 *  Thread Starter [Anthony Darter](https://wordpress.org/support/users/adarter/)
 * (@adarter)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-2fa-completely/#post-15743307)
 * **1st instance (users.php)**
    [https://i.snipboard.io/UO1lzB.jpg](https://i.snipboard.io/UO1lzB.jpg)
 * Solution:
    Add the following filters to hide Wordfence 2FA from the users table.
   It would be wise to check if the plugin is active using ‘is_plugin_active’ before
   running these filters.
 *     ```
       <?php
       add_filter( 'views_users', function ( $views ) {
           unset( $views['wfls-active'] );
           unset( $views['wfls-inactive'] );
           return $views;
       }, 999 );
       add_filter( 'manage_users_columns', function( $columns = array() ){
           unset( $columns['wfls_2fa_status'] );
           return $columns;
       }, 999 );
       add_filter( 'user_row_actions', function ( $actions ) {
           unset( $actions['wf2fa'] );
           return $actions;
       }, 999 );
       ```
   
 * **2nd instance (user-new.php)**
    [https://i.snipboard.io/1LfnlT.jpg](https://i.snipboard.io/1LfnlT.jpg)
 * Solution:
    use [admin_enqueue_scripts](https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/)
   hook to register a script file
 *     ```
       jQuery('#createuser #role').off('change');
       ```
   
 * **3rd instance (profile.php and user-edit.php)**
    [https://i.snipboard.io/o5u0z1.jpg](https://i.snipboard.io/o5u0z1.jpg)
 * Solution:
    use [admin_enqueue_scripts](https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/)
   hook to register a script file
 *     ```
       jQuery("#your-profile table:contains('Wordfence')").remove();
       ```
   

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

The topic ‘Remove 2FA Completely’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Anthony Darter](https://wordpress.org/support/users/adarter/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/remove-2fa-completely/#post-15743307)
 * Status: resolved