Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] API login / logout

Simple Membership Plugin › Forums › Simple Membership Plugin › API login / logout

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 11 months ago by mbrsolution.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 1, 2020 at 9:58 pm #21637
    nunomira
    Participant

    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

    December 3, 2020 at 1:16 am #21645
    mbrsolution
    Moderator

    Hi, are you wanting to forcefully logout members logged into your site?

    December 3, 2020 at 3:48 pm #21654
    nunomira
    Participant

    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

    December 3, 2020 at 9:36 pm #21657
    mbrsolution
    Moderator

    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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy