- This topic has 3 replies, 3 voices, and was last updated 8 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › php code to activate a member who has completed registration
Tagged: activation
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
I have submitted a message to the plugin developers to investigate further your request.
Thank you
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/
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