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:
- 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,