Is it possible to add an extra function so that I can use it in the API?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #101423
    Mohsin Bashir
    Guest

    Hello,
    hope you are doing great,
    I’m using this plugin on my website its working fine.
    but now i’m building custom api’s for user registration for android or other apps so when customer try to signup from android app he/she did not get any verification email. So my question is that we need to some extra functions to call or something else to do plz let me know asap.
    it will be highly appreciated.
    Thanks

    #101424
    Zohaib
    Participant

    Hi Mohsin,

    I have passed your request to our development team, they will get back to you soon.

    #101425
    Mohsin Bashir
    Guest

    how much time you will take to reply its too late if i’m planning to buy this product so me should think about support ???

    #101426
    Zohaib
    Participant

    Hi Mohsin,

    Thank you for your patience, your ticket is in line to be answered. The development team will get back to you soon.

    #101427
    Pablo
    Moderator
    Plugin Support

    Hi Mohsin,

    Sorry for the delay. What extra functions would you need?

    Meanwhile, if you simply update the user meta alg_wc_ev_is_activated as 1, the user is considered activated by our plugin and won’t receive the verification email. Would it be enough for you?

    #101428
    Mohsin Bashir
    Guest

    Thanks for response,
    i mean to say that i’m using custom build api for user register for mobile app and i need to verify user by click on link(send by this plugin). Currently when user register its not sending email to verify so i need to know me should use any function in api or you have any api for mobile app for this plugin please let me know to find the right solution

    #101429
    Mohsin Bashir
    Guest

    hope you are doing well,
    i’m trying to connect from very long with you guys to solve my problem but still waiting no any useful response. My whole application is pending due to your late response.
    it’s requested again plz guide me about the scenario i have explained.

    #101430
    Pablo
    Moderator
    Plugin Support

    Hi,

    I’m not sure if I’m going to be able to help you as I think I couldn’t fully understand your situation but this could be at least a suggestion.

    1- Add our alg_wc_ev_is_activated meta to the REST API.
    Pay attention to the auth_callback parameter. Here I’m simply testing if the current logged user is the same user being updated, but you may want a different test.

    add_action( 'rest_api_init', function(){
       register_meta( 'user', 'alg_wc_ev_is_activated', [
          'type'          => 'boolean',
          'single'        => true,
          'show_in_rest'  => true,
          'auth_callback' => function ( $valid, $meta, $user_id ) {
             return get_current_user_id() === $user_id;
          }
       ] );
    } );

    2- Update the user meta
    Use the /wp-json/wp/v2/users/$user_id/ to update the alg_wc_ev_is_activated meta.

    #101431
    Mohsin Bashir
    Guest

    Dear,
    i need to send email verification link when user register from my mobile app. my mobile app is working on api’s custom developed with wordpress so that why.

    #107598
    Moshtafizur
    Participant

    Hi Mohsin,

    We wanted to know if you still needed help on this.

    Please let us know.

    Kind regards,
    Moshtafizur

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.