• HOME
  • KNOWLEDGE BASE
  • FAQ
  • CONTACT US
  • HOME
  • KNOWLEDGE BASE
  • FAQ
  • CONTACT US
Home/Knowledge Base/How To/How to let User Edit their Account Phone Number

How to let User Edit their Account Phone Number

We have full compatibility with WooCommerce which means that if you are running or having WooCommerce installed on your website then our plugin will automatically add our Mobile Phone Number field in your Edit Account/User Account section of WooCommerce in frontend.

But not all people use WooCommerce but they’ll still need the option to show users their mobile numbers or let them update their numbers from the front. For those website owners, we’ve created a shortcode that will render the user’s Mobile Phone Number field in the front end.

[df-edit-phone]

Simply copy-paste the above shortcode in your WordPress Page or Post, wherever you want and this will render a field showing the user their mobile number with an option to edit it.

Using the WordPress do_shortcode function

If you want to add the shortcode in your theme page template or some page template being rendered from some of your third-party plugins then in that case you can use the WordPress do_shortcode function.

<?php echo do_shortcode( ‘[df-edit-phone]’ ); ?>

This can be added to your theme’s or plugin’s php files as per your requirement.

Was this helpful?

5 Yes  5 No
How To
  • How to let User Edit their Account Phone Number
  • How to Force Users to Log in
  • How to restrict certain Phone Numbers from Signup
  • How to setup User or User Role Based 2Factor or 3Factor Authentication
  • How to Disable Phone Number Verification on Signup
  • How to add a test Number in Firebase
View All 33  
Categories
  • Addons
  • Common Errors
  • Gateway Setup
  • Getting Started
  • How To
  • Page/Popup Builder
  • Social Login

  How To Link Digits Custom Login Page or Modal

How to Force Users to Log in  

    • Made with ❤ by Humans on 🌎