Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: Membership Level and Forum Role #171346
     dm25bell
    Participant

    Um, ok maybe my fault here. I asked “What file should it be place in?” As in what file or folder in WordPress do I copy and paste your code? Everything found online is from 2013-2014 and those folders do not exist anymore. So again please when I copy and paste the code you provided, I will place it in the file named ____________?

    in reply to: Membership Level and Forum Role #171108
     dm25bell
    Participant

    ok, I must be doing something wrong, I’ve tried the code above:

    function my_pmpro_default_registration_level($user_id) {
    //Give all members who register membership level 1
    pmpro_changeMembershipLevel(1, $user_id);
    }
    add_action(‘wp_loaded’, ‘my_pmpro_default_registration_level’);

    and it didn’t work. Am I putting it in the wrong place? What file should it be place in?

    in reply to: Membership Level and Forum Role #170844
     dm25bell
    Participant

    Thanks, I will test this out. The second code is what I need. Fingers crossed! Will let you know if it did the trick.

Viewing 3 posts - 1 through 3 (of 3 total)

Log in with your credentials

Forgot your details?