• Resolved rasoul72

    (@rasoul72)


    hi
    how to register a number in the sms newsletter in front end?
    is there a function for user registration?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 3 years, 10 months ago by vitathemes.
    Thread Starter rasoul72

    (@rasoul72)

    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 3 years, 10 months ago by rasoul72.
    Plugin Author Mostafa Soufi

    (@mostafas1990)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘function for user registration’ is closed to new replies.