- This topic has 3 replies, 2 voices, and was last updated 5 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › API login / logout
Hi,
I’ve seen there’s an API to:
– Create Users
– Update Users
– Query a Member Account
Isn’t it possible to login/logout user?
What would be a way to do this?
Using these functions?
$auth = SwpmAuth::get_instance();
$auth->logout();
$auth = SwpmAuth::get_instance();
$auth->login($username, $password);
Are there similar functions to create/update users (instead of using the API)?
Thanks
Hi, are you wanting to forcefully logout members logged into your site?
Hi,
I’m trying to customize the forms, probably building my own, on top of what the plugin offers, so I’m trying to find the best ways to do it.
Thanks
If that is the case, your best option is with the Form Builder addon.
https://simple-membership-plugin.com/simple-membership-form-builder-addon/
Let me know if the above helps you.
Thank you