• Resolved malfy

    (@malfy)


    In the plugin options, you can assign free users an initial subscription:

    If you have free user registration enabled on your site, select the subscription they will be assigned to initially.

    When my free users register to the site, they are initially assigned the subscription “1-yr subscriber.”

    When going through the sign-up process, they enter their username, email and password, then press ‘register’ and they’re sign-up as “1-yr subscribers.” However the page they’re left looking at when the submit the register form, is the subscriptions page. Although it says “You have a 1-yr subscriber subscription,” it also presents the other subscription options, and this confuses new users.

    How can I make it so that it redirects to the homepage or something after registration? (Not subscription. The “Registration completed page” redirect in the Membership Page Options, only applies after they choose a subscription, not after registration.)

    https://ww.wp.xz.cn/plugins/membership/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter malfy

    (@malfy)

    Additionally, their initial (on registration) subscription status doesn’t actually take affect, until after they refresh the subscribe/registration page.

    (So the new user is not actually assign the initial subscription level until after they hit submit AND REFRESH the next page.)

    Hi @malfy,

    Thanks for posting here, sorry to hear you’ve had some trouble with that. We’d love to get this sorted though. Could you let us know what you have setup here:

    Membership > Options > Membership Pages

    There’s a “Registration completed page” option there and that should be used to redirect the user after completed registration. Have you set a page there?

    Thanks, David

    Thread Starter malfy

    (@malfy)

    The “Registration completed page” redirect in the Membership Page Options, only applies after they choose a subscription, not after registration.

    I’ve already mentioned this in my first post….. The “Registration completed page” redirect does not occur after registration, but only after they choose a subscription.

    My members already are given a ‘basic’ subscription by signing up. They don’t need to choose another one.

    The description for the “Registration completed page” specifically says “When a user has signed up for membership and completed any payments required, they will be redirected to this page.”

    But members given a basic subscription on sign up don’t need to complete any payments, yet they’re stuck on the subscriptions page after signing-up, never redirected.

    Hi @malfy,

    Thanks for clarifying that, sorry I misunderstood that in your original post though! I see what you mean about registration.

    Perhaps something like the following will work for you?

    function my_registration_redirect()
    {
        return home_url();
    }
    add_filter( 'registration_redirect', 'my_registration_redirect' );

    That could be added to your theme’s functions.php or using a plugin like Code Snippets: http://ww.wp.xz.cn/plugins/code-snippets/

    That should redirect to your home page after registration, or you could setup a specific registration page by adding it in parantheses in that home_url() function like so:

    return home_url( '/registered' );

    Would that maybe take care of it for you?

    Cheers, David

    Thread Starter malfy

    (@malfy)

    That didn’t work for me, although in principle it’s exactly what I want. Is there something that turns the registration_redirect hook off?

    Hi @malfy,

    Hmm, not sure what you have in mind as far as turning that off but perhaps you could remove it?

    http://codex.ww.wp.xz.cn/Function_Reference/remove_filter

    Perhaps like so:

    remove_filter( 'registration_redirect' );

    Would that help in your case?

    Thread Starter malfy

    (@malfy)

    Oh, I wasn’t asking how to turn it off, but if something had turned if off?

    I was reading somewhere that the registration_redirect hook can be “turned off” per user, and maybe that’s why it doesn’t work?

    Does using this work correctly for you with the plugin?:

    function my_registration_redirect()
    {
    return home_url();
    }
    add_filter( ‘registration_redirect’, ‘my_registration_redirect’ );

    Hi @malfy,

    Thanks so much for your patience with this. I see what you have in mind now and sorry that I misunderstood previously.

    Indeed, the registration redirect within the plugin is specifically for after the subscription selection.

    Have you maybe considered simply using WordPress for the registration process itself, not even linking directly to the Membership registration page at all.

    Then you could use standard registration redirect code like above and then somewhere in the process, link the user to the subscription page?

    Seems like that sort of workflow might work better for you, no?

    Cheers,
    David

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Free user registration’ is closed to new replies.