WordPress.org

Forums

WP-Members: Membership Framework
[resolved] Redirect user upon login (2 posts)

  1. ronankealy
    Member
    Posted 2 years ago #

    I was wondering can you redirect a user upon logging into a secure area depending on their saved data. I require a user to be directed to a certain url depending on a 'region' they selected in the registration form. Like choosing A,B,or C in a select/drop-down list in the form. Is there a way to achieve this in the WP Members plugin?

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    There are a couple of redirect hooks that would serve you in this area - one if wpmem_login_redirect, which is a filter hook and wpmem_register_redirect, which is an action hook. (Documentation on all hooks is available here: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/)

    The advantage the hook gives you is that you can write into your filter or action function whatever criteria you need to base the redirect on.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic