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
You are here: Home

Nosebleed

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • February 11, 2017 at 7:35 am in reply to: How to manually "login" the user outside the plugin? #10129
    Nosebleed
    Participant

    Hello!

    The users logs in as a subscriber. I have disabled the admin bar for them and they are just doing whatever they doing on the front end with some more custom features. I will try and explain what I need.

    When the users logs in via the login form provided by the plugin everything is fine, because it uses the default WordPress signon and also sets another cookie that is created by the plugin and also logs them in the plugin. I want to use my login form which uses the default WordPress login, but the form doesn’t know that there is another cookie to be set via the plugin and it doesn’t login the user.

    So the question is how can I manually ( programatically ) trigger the plugin authentication using the already logged in user’s credentials?

    https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes/user.php#L28

    This function is triggered when the user is loggedin by default. I can attach whatever I want here – https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes/user.php#L104 on the wp_login action – which is to authenticate the user via the plugin’s cookie.

    I hope I was being helpful.

    Regards.

  • Author
    Posts
Viewing 1 post (of 1 total)
Next Page »

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