If you wish to ‘Register User’ or ‘Retrieve Password’ using REST API, without exposing Administrator credentials to the Front End application, you are at the right place. Since WordPress 4.7, REST API was natively included in WordPress.
In order to ‘Register User’ or ‘Retrieve Password’, the authentication for a user with ‘Administrator’ role is required. While this is a delibrately done for security reasons, such implementation makes it very hard for Front End applications to implement a simple ‘Register’ or ‘Sign Up’ function.
This plugin fullfills such requirement by extending the existing WordPress REST API endpoints.
To Register a User using REST API, send a POST request to /wp-json/wp/v2/users/register, with a JSON body (Set header: content-type: application/json):
{ "username": "your-username", "email": "username@test.com", "password": "0000", }
If successful, you should receive the following response
{ "code": 200, "id": 13, "message": "User 'your-username' Registration was Successful" }
To perform further actions after user is registered, write and add_action:
add_action('wp_rest_user_user_register', 'user_registered'); function user_registered($user) { // Do Something }
To Retrieve Password using REST API, send a POST request to “/wp-json/wp/v2/users/lost-password`, including a JSON body (Set header: content-type: application/json):
{ "user_login": "username@test.com" } user_login can be either user's username or email.
If successful, you should receive the following response
{ "code": 200, "message": "Reset Password link has been sent to your email." }
See the Screenshot below for POSTMAN demo:
SK8Tech – Customer Success Specialist offers Technical Support to configure or install WP REST User.
Based in Sydney, SK8Tech is a innovative company providing IT services to SMEs, including Web Design, App Development and more.
Starting from $0 per month.
Rating
Reviewers
5 reviews
Tags
Developed By
jacktator
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Boost Engagement with Visually Compelling Interactive Polls
Improve Visibility & Increase Attendance With the Event Flip Cards App
Create and Manage Your Online Course Catalog Effortlessly
Bracket Generator to Build Tournaments
Create Stunning WordPress Feeds & Improve User Experience
Create Custom Product Order Forms Easily
Make Your Website Multilingual with Ease and Style
Improve Trust & Credibility With the Team Member Flip Cards App
Connect instantly with visitors via our customizable Call Button
Create Stunning Threads Feeds & Improve User Experience
Create Impressive YouTube Feeds & Improve User Experience
AI-Powered Chat for Instant & Efficient Customer Support
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!