Request for auto login option filter hook

This topic contains 4 replies, has 3 voices, and was last updated by  Patrik 6 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1942

    Tola Odejayi
    Buyer
    Post count: 1

    I have a similar problem to the problem reported here:

    https://userswp.io/support/topic/redirect-not-working/

    I solved the problem in a similar way – making a change to includes/class-forms.php so that if you select the auto_approve option, then when users complete registration, they will be redirected to a specified page.

    The problem is that whenever the plugin is updated, I have to make this change again.

    Would you consider going to this line in the file:

    $auto_login = uwp_get_option(‘uwp_registration_action’, false);

    and adding this line to add a filter hook just after it:

    apply_filter(‘uwp_get_option_uwp_registration_option_handler’, $auto_login);

    That way, I can just handle the hook in my theme’s functions.php file to change the auto_login option, and I don’t have to keep on changing the code when userswp is updated.

    #1962

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Thank you for writing in with your idea about the hook and included code to go with it.

    Your topic has been flagged for the developers to review. Thanks for your patience while they look into it!

    #1980

    Patrik
    Moderator
    Post count: 1971

    Hi Tola!

    We have added a hook in the core file and will be available in next release of the plugin.

    Regards,
    Patrik

    #1984

    Tola Odejayi
    Buyer
    Post count: 1

    Thanks!

    #1985

    Patrik
    Moderator
    Post count: 1971

    Hi Tola,

    The new version of the UsersWP plugin is released. Please update your plugin and let me know your inputs.

    Regards,
    Patrik

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket