It’s already added in the beta version as a method in the main class which is accessible by WPSms(); something like this:
WPSms()->newsletter()::addSubscriber('name', '222222', 2);
https://github.com/veronalabs/wp-sms/commit/f0f53550a7eac3336d0adb9569b4c7008633ad8a
-
This reply was modified 5 years ago by
vitathemes.
hi
thank you for support and update
i used
WPSms()->newsletter()::addSubscriber
and
WPSms()->newsletter()::deleteSubscriberByNumber
for add and delete subscriber in front end, but this method is not safe due to the lack of mobile verification. Is there a method for mobile verification?
-
This reply was modified 5 years ago by
rasoul72.
You can enable the mobile verification and then sending the verification code through ajax to PUT /wp-json/wpsms/v1/newsletter
Parameters:
– mobile
– activation
– group_id