This topic has 3 replies, 2 voices, and was last updated 8 years by Andrei.

  • Author
  • #94798
     jaitshah
    Participant

    Hello,

    Our website is http://iakc.org/vrit, we want to add membership subcription during the signup process itself, not after confirmation email.

    This will not allow spam users. Please look after and Would highly appreciate a prompt reply.

    #94846
     Andrei
    Moderator

    Do you only want to automatically apply an initial free level at register or something else more complex ?

    For the first case I could provide you a quick small piece of code to help you with it, but anything more complex than that will need extra custom developments.

    Looking forward.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #95819
     jaitshah
    Participant
    This reply has been set as private.
    #96194
     Andrei
    Moderator

    Here is it, add it to your functions.php file from your active theme.

    COPY CODE
    
    add_action('user_register', 'kleo_pmpro_default_level');
    function kleo_pmpro_default_level($user_id) {
    	pmpro_changeMembershipLevel(1, $user_id); // change 1 with the id of your desired level
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?