The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. ronankealy
    Posted 3 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?


  2. Chad Butler
    Plugin Author

    Posted 3 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