Skip to main content
7 events
when toggle format what by license comment
Jun 2, 2013 at 14:52 vote accept Harish Chouhan
Jun 2, 2013 at 14:52
Jun 1, 2013 at 13:01 vote accept Harish Chouhan
Jun 2, 2013 at 14:52
Jun 1, 2013 at 13:01 comment added Harish Chouhan Hello, I'm sorry you are right. In the example code it just saves the URL and not actually redirect. So accordingly to you, JavaScript based redirect seem to be my only option?
Jun 1, 2013 at 12:43 comment added Rarst @HarishChouhan where do you see wp_redirect() in that code?
Jun 1, 2013 at 12:39 comment added Harish Chouhan The link is pippinsplugins.com/wordpress-login-form-short-code
Jun 1, 2013 at 12:38 comment added Harish Chouhan Hello I found this:` function pippin_login_form_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'redirect' => '' ), $atts ) ); if (!is_user_logged_in()) { if($redirect) { $redirect_url = $redirect; } else { $redirect_url = get_permalink(); } $form = wp_login_form(array('echo' => false, 'redirect' => $redirect_url )); } return $form; } add_shortcode('loginform', 'pippin_login_form_shortcode');` Here it seems the wp_redirect is placed inside a shortcode.
Jun 1, 2013 at 12:21 history answered Rarst CC BY-SA 3.0