- This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Automatically detecting and authenticating users logged in via wp-login
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!
What exactly is the end-goal of what you are trying to accomplish?
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.
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/
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!