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

php code to activate a member who has completed registration

Simple Membership Plugin › Forums › Simple Membership Plugin › php code to activate a member who has completed registration

Tagged: activation

  • This topic has 3 replies, 3 voices, and was last updated 8 years, 8 months ago by shup.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 2, 2017 at 6:33 pm #12056
    shup
    Participant

    Hi,

    I use the simple membership plugin to collect registration details for my website. Members stay in a pending state until I assign a custom membership number (which comes from another system). The membership number assignment is coded separately in php. I would like to automate the activation of the user (i.e. the editing of a user, changing the status to Active, and clicking Save).

    Is there a php tweak or does anyone have a code snippet to call the appropriate function to edit status or activate a member?

    Many thanks in advance,
    Shup

    October 3, 2017 at 12:09 am #12061
    mbrsolution
    Moderator

    I have submitted a message to the plugin developers to investigate further your request.

    Thank you

    October 3, 2017 at 5:34 am #12068
    admin
    Keymaster

    I have added an example code snippet showing you how to do that. Check the “Update a Member’s Account Status” section from the following page:

    https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/

    October 3, 2017 at 4:39 pm #12074
    shup
    Participant

    Brilliant – will try that shortly.

    I assume it will only update the status. Is there a subsequent call, that can send the member notification (as if you activate a member manually through the plugin)? I’m trying to avoid having to log back into WordPress to let the member know that their status has been updated if at all possible. If not, I’ll generate my own email.

    Many thanks for the fast help.
    Shup

  • 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