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.