Skip to main content

Timeline for Use wp_redirect to add a parameter

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Sep 10, 2015 at 10:11 comment added ArisF Thank you for the fast response. I did what you suggest and seems to add the parameter as expected (with no loop). The problem now, however, is that no matter what link I click on the page it always goes to the page specified in the script (eg. I click home and it still redirects me). Tried this but it does not work. $current_user = wp_get_current_user(); if ( is_user_logged_in() && !isset( $_GET['user'] ) && is_page( 'my-wishlist' ) ) { wp_redirect( 'example.com/my-wishlist/… ); exit; }
Sep 10, 2015 at 8:59 history answered jzatt CC BY-SA 3.0