
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": "[email protected]", "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": "[email protected]" } 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.
Show eBay reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions that support higher sales.
Present your team with a structured team member list that builds trust, supports credibility, and helps visitors connect with the people behind your brand.
Corner button that stays fixed on the screen to highlight promotions, improve navigation, and guide visitors toward important actions with clear visibility.
Enhance titles with highlighted headlines that use custom colors, animations, and styles to draw attention and help visitors notice key messages.
Add opening hours to your site to give visitors clear, reliable business information that improves trust, reduces confusion, and supports user experience.
Collect and manage donations securely with a customizable online donation form that supports Stripe or PayPal and helps increase contributions.
Show rankings and performance data on your site with a customizable scores board that motivates participation and keeps users engaged.
Add a translation widget to your site so users can switch languages easily and access content in their preferred language.
Nudge button with a subtle shaking animation that draws attention to important calls to action, increases interaction, and helps boost conversions.
Show your Amazon product reviews with My Reviews on Amazon to build trust, boost credibility, and help visitors make confident purchase decisions.
Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.
Show alerts and updates with a notification popup that grabs attention, delivers important messages, and improves user experience.
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!
