• Hi!

    I need some help to configure the redirecting function.

    I explain quickly the scenario I want to provide:
    > people arrive on a page
    > they log in
    > they see the content of the page

    how should i use these lines that you provides ?

    // Redirect using post id
    add_filter( 'sewn/login/logged_in_redirect', 'custom_sewn_logged_in_redirect_id' );
    function custom_sewn_logged_in_redirect_id()
    {
        return 4;
    }

    btw do you know a similar plugin to sign up a wordpress account?

Viewing 1 replies (of 1 total)
  • Plugin Author Jupitercow

    (@jcow)

    That filter would use a post id to redirect to a page or post with that id. So find the id of the post you want to redirect to and replace “4” with it.

    For you, you should be able to do this:

    // Redirect using post id
    add_filter( 'sewn/login/logged_in_redirect', 'custom_sewn_logged_in_redirect_id' );
    function custom_sewn_logged_in_redirect_id()
    {
        return get_the_ID();
    }
Viewing 1 replies (of 1 total)
  • The topic ‘How to redirect to the same page?’ is closed to new replies.