• I need the redirection to go back to the home page. I have all of your template files in my theme and have made customizations, on the user-login.php file I tried changing this:

    if ( is_user_logged_in() ) {
    	wp_safe_redirect( home_url( '/user-profile/' ) );
    	exit;

    But it’s still sending me to the profile page every time I log in. How can I fix this??

    https://www.ads-software.com/plugins/user-frontend/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Chris Perryman

    (@revconcept)

    Bump?

    Did you ever find a fix for this? I’m having the same issue… I thought changing the wp_safe_redirect would do the trick, but it doesn’t seem to be the case.

    Thread Starter Chris Perryman

    (@revconcept)

    No, I was not able to get this working – I don’t want to edit the core plugin, but that’s my next move unfortunately unless they fix this….

    Plugin Author wpcodingde

    (@wpcodingde)

    Hello there,

    sorry for the huge and unforgivable delay and lack of support. I’ll do my best to change this in 2015.

    If you look deeper into the code of the plugin, you’ll notice that the user will be redirected to a custom page if the $_POST-Variable ‘redirect_to’ is setted.

    wp_redirect( $_POST[ 'redirect_to' ] );

    But I’ll provide a filter as written in my issue tracker.

    Best regards,
    Thomas

    Thread Starter Chris Perryman

    (@revconcept)

    Where am I supposed to set this??

    Thread Starter Chris Perryman

    (@revconcept)

    I currently have this in my user-login.php file (which isn’t working since I updated the plugin it’s not calling my custom files):

    <?php echo isset( $_GET[ ‘redirect_to’ ] ) ? ‘<input type=”hidden” name=”redirect_to” value=”‘ . esc_url( $_GET[ ‘redirect_to’ ] ) . ‘”>’ : ”; ?>

    What do I need to do to get the redirect to work?

    Plugin Author wpcodingde

    (@wpcodingde)

    Hey RevConcept,

    The redirection should work if the URL to the login page is something like https://yourdomain.tld/user-login/?redirect_to={escaped_url}.

    I’ll test this issue within the upcoming week. Maybe I should provide a function uf_get_login_url() with the redirection parameter.

    I’ll overthink this and will post in this thread.

    Best regards,
    Thomas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirection Issue’ is closed to new replies.