• Resolved wbrenner

    (@wbrenner)


    Hi guys!

    Thank you for the plugin, it’s great.

    I’m trying to redirect my users to HOMEPAGE after login and registration. I know there is a setting to choose a page to redirect to, but there’s no option to homepage.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Alessandro Tesoro

    (@alessandrotesoro)

    Hi there,

    At the moment you can override the login redirect with the built-in filter like this:

    function wpum_custom_redirect_to_homepage( $url ) {
        return home_url();
    }
    add_filter( 'wpum_get_login_redirect', 'wpum_custom_redirect_to_homepage' );

    You can add the above code to your theme’s functions.php file.

    Unfortunately there currently is no filter for the registration form.

    Thread Starter wbrenner

    (@wbrenner)

    Thank you for your reply Alessandro.

    I’m getting this notification upon activation:

    The code snippet you are trying to save produced a fatal error on line 4:

    syntax error, unexpected ‘&’

    Thread Starter wbrenner

    (@wbrenner)

    It’s working!

    Sorry – my mistake!
    I copied the code from email and I got the typo.

    Thank you Alessandro!

    hi
    i have an issue in my wordpress website when the register user get login to his account he can not access home page

    hey guys

    i am looking for a code that i can use as shortcode.

    after clicking “next” button in the post, i want to REDIRECT the user to another post that i decide ( no automatic load posts or display )

    i am using the plugin “shortcoder” but i have no experience in coding.

    thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect user to HOMEPAGE after login?’ is closed to new replies.