• Resolved Suika

    (@suikalum)


    Right now this is how my registration flow goes:

    First, the user signs up — after this stage, they’re in a level called “Registered” with an Active status.

    Next, user is logged in and are prompted to fill out the rest of the fields in their profile form — after this stage, I want to change their membership level to “Ready for Verification” so that the admins can check their profiles manually and upgrade them to the final membership level called “Verified”

    Is there any way I can trigger the change to “Ready for Verification” ? May it be using a paid plugin, or updating a meta data programatically. The profile form doesn’t also have to be SWPM’s profile form itself, I can do a separate custom form if that can work.

    Any leads would be helpful.

    Thank you!

    Viewing 6 replies - 1 through 6 (of 6 total)
    • Plugin Support mbrsolution

      (@mbrsolution)

      Thank you for reaching out to us.

      Is there any way I can trigger the change to “Ready for Verification” ?

      What if you manually approve the registration. This would allow you to change the status after you approve the registration. The following documentation can help you.

      https://simple-membership-plugin.com/manually-approve-members-membership-site/

      If you require extra fields, then the following addon might also help you.

      https://simple-membership-plugin.com/simple-membership-form-builder-addon/

      Let me know if the information above helps you.

      Kind regards.

      Thread Starter Suika

      (@suikalum)

      Hello, thanks I considered this but I can’t use your default manual registration approval because I need them to be able to log in as soon as they sign up in order for them to complete their profile.

      Is there any hook, function, or meta data I can tap into instead in order to change the membership level?

      • This reply was modified 6 months, 2 weeks ago by Suika.
      Plugin Author wp.insider

      (@wpinsider-1)

      Hi there, I’d like to provide some additional information that might be helpful for your request. However, I want to clarify upfront that our plugin doesn’t have a built-in solution for this functionality. Implementing this will require custom development, so it may be challenging if you’re not familiar with coding. You might also want to explore plugins that offer this feature out of the box.

      First, you should use the following registration method (this one allows the user to register for a free account before doing any other steps)

      https://simple-membership-plugin.com/allowing-members-create-account-prior-completing-membership-payment/

      Next, you can instruct the users to go to the profile page or your custom page where you have a custom form to submit additional information.

      When our plugin’s profile form is submitted, the following action hook is triggered (if you are familiar with action/filter hooks, you might be able to use this):

      https://simple-membership-plugin.com/simple-membership-action-hook-reference/#swpmfrontendprofileedited

      You can update a member’s account status from your custom PHP code using the following mentioned function:

      https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/#update-a-members-account-status-from-your-custom-php-code

      Thread Starter Suika

      (@suikalum)

      That sounds exactly like what I need, thank you!

      I’ll work on this from today and report back how it goes for anyone else who might be looking for the same thing.

      Thread Starter Suika

      (@suikalum)

      Hi, I think I misread a detail on the last part of your instructions earlier. I wanted to change the membership level of the user right after updating their profile, not the member’s account status.

      So at the moment, I already have the following data:

      // after profile form submit
      $member_id = 5;
      $new_membership_level = 2;

      And I found this utility function to update the user’s membership level:

      SwpmMemberUtils::update_membership_level( $member_id, $new_membership_level );

      It seems to be working but I am at the early stages of the project and I just want to be cautious — can you confirm this is the best function to use in my case?

      Thank you!

      • This reply was modified 6 months, 2 weeks ago by Suika. Reason: added more information
      Plugin Author wp.insider

      (@wpinsider-1)

      Hi, It’s better to use the following function to update the membership level of a member:

      SwpmMemberUtils::update_membership_level_and_role( $member_id, $new_membership_level );

    Viewing 6 replies - 1 through 6 (of 6 total)
    • The topic ‘Change membership level after completing profile form’ is closed to new replies.