Title: 2FA Setup page short code/php call?
Last modified: February 10, 2024

---

# 2FA Setup page short code/php call?

 *  Resolved [khansadi](https://wordpress.org/support/users/khansadi/)
 * (@khansadi)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/2fa-setup-page-short-code-php-call/)
 * Hi Team,
 * I am enabling 2FA for a site with custom role and those custom role does not 
   have admin access/dashboard menu access. Can you share any short code or PHP 
   call that I can leverage to generate the individual 2FA setup page where the 
   user can see their respective QR code and set it up without being an administrator
   or having backend dashboard access. 
   Thanks,Sadi
    -  This topic was modified 2 years, 3 months ago by [khansadi](https://wordpress.org/support/users/khansadi/).

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

 *  Plugin Support [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * (@hjogiupdraftplus)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/2fa-setup-page-short-code-php-call/#post-17414339)
 * Hi [@khansadi](https://wordpress.org/support/users/khansadi/),
 * For front-end editing of settings shortcode can be used it will allow that custom
   role user to enable the two-factor settings without access to the backend dashboard.
 *     ```wp-block-code
       [twofactor_user_settings]
       ```
   
 *  Thread Starter [khansadi](https://wordpress.org/support/users/khansadi/)
 * (@khansadi)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/2fa-setup-page-short-code-php-call/#post-17415014)
 * Thanks! Worked like a charm!!
 *  Plugin Support [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * (@hjogiupdraftplus)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/2fa-setup-page-short-code-php-call/#post-17417093)
 * Hi [@khansadi](https://wordpress.org/support/users/khansadi/)
 * Glad to know that shortcode works as per your requirement.
 * Would you mind writing a quick five-star review on wordpress.org?
 * [https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/#new-post](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/#new-post)
 * Reviews also help others to make confident decisions about our plugin.

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

The topic ‘2FA Setup page short code/php call?’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [hjogiupdraftplus](https://wordpress.org/support/users/hjogiupdraftplus/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/2fa-setup-page-short-code-php-call/#post-17417093)
 * Status: resolved