• Resolved andrewsumner

    (@andrewsumner)


    I’ve just installed this as the functionality within Wordfence doesn’t currently allow Woocommerce customer accounts to use the 2FA functionality within that plugin.

    Having a poke around in the back end and getting this enabled for anyone that has access to /wp-admin is easy as they can just navigate to the correct page if 2FA is enabled for their role. However, those with an account type of customer cannot, and I can’t see anywhere within the existing woocommerce /my-account/ pages that they can configure 2FA for their account, am I missing something here?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter andrewsumner

    (@andrewsumner)

    Don’t worry, just found another support topic with the below solution:

    add_action('woocommerce_after_edit_account_form', 'custom_wc_after_edit_account_form');
    function custom_wc_after_edit_account_form() {
       echo '<br><h2 class="screen-heading general-settings-screen">Two Factor Authentication</h2>';
    
       echo do_shortcode('[twofactor_user_settings]');
    }
    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Glad you found it! If you like the plugin, please do give it a 5-star review (only around 1 in every 250 free users review); if it’s not worth it in your view, please tell us why in the support forum.

    Thank you,
    David

    hi,

    I have added the code above, but all I can see is a shortcode ??

    Thanks

    Uli

    I have the same issue where only the shortcode displays. Adding that code snippet into functions.php doesn’t work for me.

    Alguien lo ha resuelto?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do woocommerce customers go about enabling 2FA for their account?’ is closed to new replies.