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 an option to show users their mobile number or let them update their number from the frontend. For those website owners, we’ve created a shortcode that will render user’s Mobile Phone Number field in frontend.
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 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 plugin then in that case you can use the WordPress do_shortcode function.
<?php echo do_shortcode( ‘[digits-edit-phone]’ ); ?>
This can be added in your theme’s or plugin’s php files as per your requirement.