WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
[resolved] Page redirection after successful payment (7 posts)

  1. kothinti
    Member
    Posted 1 year ago #

    Hello,

    Where can I look in the code to change Redirection back to original page after payment process is completed? Is that possible?

    Best regards,
    Ashok

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    After checking out, the user is directed to the membership confirmation page. If you want people to go somewhere else, you can write code that hooks into the "wp" hook, checks $post->ID, and redirects the users to where they want to be.

    The user's current level will be in $current_user->membersghip_level->id if you need to go to different pages depending on level.

    Hope this helps.

  3. kothinti
    Member
    Posted 1 year ago #

    Hi, Thanks for your response.

    Please check our website
    http://investmentunderground.com/2012/06/16/dont-sell-pfizer-can-handle-crisis/

    When user click on Login link (bottom of the article), they will be redirected to their profile page. But instead we need to take him back to this article again after login. Is there a way to achieve this?

    Best regards,
    Ashok

  4. strangerstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Theme My Login has modules to control where users go when they sign in. "Referring page" is one of the options I believe:

    http://wordpress.org/extend/plugins/theme-my-login/

  5. rwilki
    Member
    Posted 1 year ago #

    any ideas for writing the hook to check and redirect to $post>ID?

    thanks,
    Bob

  6. rwilki
    Member
    Posted 1 year ago #

    found the answer!

    thanks,
    Bob

  7. strangerstudios
    Member
    Plugin Author

    Posted 11 months ago #

    Closing this thread.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic