• Resolved vishnu1234

    (@vishnu1234)


    Hello Ali Qureshi

    Thanks for the amazing plugin. I implemented lots of thing for my app using plugin and successfuuly worked for login,forget password and register . I have little bit knowledge of code and know few thing to implement-

    1.) I want to create new endpoints for my form (submit rates) . Let me know how I can work for this in the file ? Have to create new function and I also need the current logged in users details.

    2.) how to work for logout?

    3.) I worked on register: to update_meta by read forums and implemented 🙂
    To hide nonce from the User.php , Let me confirm it will not make any issue further, If we donot use ‘nonce’ param or it works?

    https://wordpress.org/plugins/json-api-user/

Viewing 1 replies (of 1 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    you can comment out the nonce if you don’t need, that’s fine.

    for the logout thing, you can generate_auth_cookie for only few minutes or seconds. if it expires, you can generate it again. check the documentation for generate_auth_cookie.

    For current logged in user, you can identify the user from cookie. you can see the existing functions in the plugin for ideas

Viewing 1 replies (of 1 total)
  • The topic ‘how to create new Endpoints?’ is closed to new replies.