
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.
Create interactive image polls that use compelling visuals to boost engagement, gather feedback, and help visitors vote easily.
Add collapsible content sections to your site to organize information and help users navigate content more efficiently.
Create a clear restaurant menu list that helps visitors explore dishes easily, understand key details, and make confident ordering decisions that support conversions.
Add Telegram Chat to your site to communicate with visitors, deliver instant support, and provide a smoother, more reliable user experience.
Show LinkedIn posts with a slider that auto updates, presents content in a smooth layout, and keeps visitors engaged.
Show Threads posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage on your site.
Showcase images with an image carousel that rotates or slides visuals, improves design, and draws attention to key content.
Use event flip cards to highlight upcoming activities, improve visibility, and help visitors discover events that increase attendance and engagement.
Add a PDF viewer to your site to display documents, share product information, and give visitors easy access to helpful content in one place.
Collect candidate information with a job application form that organizes submissions, streamlines hiring, and helps you manage applicants efficiently.
Add interactive stories to your site to showcase content in a visual, mobile friendly format that boosts engagement and guides visitors toward action.
Add a currency converter to your site so users can view equivalent values in their local currency for easier global access.
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!
