Mobile phone field | WordPress.org

[ad_1]

Hi,

Thank you for reaching out.

Yes, it is possible to use the mobile number field from the Digits plugin instead of the WP SMS plugin’s mobile number field. You can achieve this by utilizing the provided filter.

Here’s how you can do it:

  1. Use the wp_sms_user_mobile_field filter to specify the mobile number field key from the Digits plugin.

Add the following code to your theme’s functions.php file or a custom plugin:

add_filter('wp_sms_user_mobile_field', function ($fieldKey) {
   return 'your_digits_mobile_key'; // Replace 'your_digits_mobile_key' with the actual meta key used by the Digits plugin
});

By doing this, the WP SMS plugin will retrieve the mobile number from the specified Digits plugin field.

If you have any further questions or need additional assistance, please feel free to ask.

Best,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer