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] Automatically detecting and authenticating users logged in via wp-login

Simple Membership Plugin › Forums › Simple Membership Plugin › Automatically detecting and authenticating users logged in via wp-login

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by Emmatt.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 24, 2018 at 6:33 pm #16494
    Emmatt
    Participant

    Hi,

    Is there a filter/hook/function that we can call to automatically detect and authenticate a user that is already logged in via the normal WordPress system, so that the various other functions like is_user_logged_in() will respond appropriately?

    We are currently successfully using wp_set_auth_cookie() to log a user into the WordPress system, and this works for users in this great plugin as well, it just doesn’t store/retrieve the Simple Membership user data?

    Thanks again!

    September 24, 2018 at 8:16 pm #16495
    The Assurer
    Moderator

    What exactly is the end-goal of what you are trying to accomplish?

    September 24, 2018 at 8:25 pm #16496
    Emmatt
    Participant

    Simply to allow a third party, non-WordPress piece of software access to authorized content in a known working WordPress site with Simple Membership WP – a single-sign-on situation, where the other software is the real gatekeeper, with Simple Membership providing a custom experience on the WordPress document repository.

    All of the above is in place, including automatic WordPress authentication – unfortunately authenticating strictly in WordPress is insufficient to populate the needed Simple Membership data – there’s an extra step that’s obviously needed to populate that data.

    September 25, 2018 at 4:44 am #16498
    The Assurer
    Moderator

    Simply to allow a third party, non-WordPress piece of software access to authorized content in a known working WordPress site with Simple Membership WP…

    Do any of these existing PHP calls help?
    https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/

    September 27, 2018 at 4:01 pm #16524
    Emmatt
    Participant

    Thank you very much – I think that “get_user_by_id” comes close to what we need. If we move forward with this and run into issues, we will reach out to paid support for more elaborate input.

    Thanks again!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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