admin管理员组文章数量:1321044
I want to use Wordpress for the user management of a simple web app.
What I really need to do:
- Check if a user is logged in
- Save meta data to a logged in user
- Read meta data of a logged in user
Doing the register process in my web app would be nice, too, but it would also work on another page.
Is it possible to do these things "outside" of the WP installation (but on the same domain)? For example via ajax requests?
Where can I start?
EDIT:
I just read about including wp_load.php to use the WP functions. Is that a clever approach?
Thank you so much!
I want to use Wordpress for the user management of a simple web app.
What I really need to do:
- Check if a user is logged in
- Save meta data to a logged in user
- Read meta data of a logged in user
Doing the register process in my web app would be nice, too, but it would also work on another page.
Is it possible to do these things "outside" of the WP installation (but on the same domain)? For example via ajax requests?
Where can I start?
EDIT:
I just read about including wp_load.php to use the WP functions. Is that a clever approach?
Thank you so much!
Share Improve this question edited Sep 29, 2020 at 14:37 Timo asked Sep 29, 2020 at 14:24 TimoTimo 11 bronze badge1 Answer
Reset to default 1You might want to take a look at the REST API that comes out of the box with WordPress.
Here are the docs for Users, you can register users and list/retrieve/update them https://developer.wordpress/rest-api/reference/users/
Here's the information about how to authenticate to use the API (so that you can Reigister Users for instance) https://developer.wordpress/rest-api/using-the-rest-api/authentication/
本文标签: Using WP for user management
版权声明:本文标题:Using WP for user management 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742093985a2420432.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论