Support » Plugin: Force Password Change » Front end profile page

  • Hello Simon,

    I know this question as been asked to you more than once: I’d like to redirect the user to a front-end profile page, rather than the ugly admin one.

    I perfectly understand that it’s hard to do because of the values of the password fields name in the new form.

    In my case, I’m going to use the same variable names as in the admin profile form.

    I know wordpress code so I know that I can make changes to your plugin, but I’m not sure where to make the changes… Could you please help me?

    First what I tried was to change this:

    if ( get_user_meta( $current_user->ID, 'force-password-change', true ) ) {
    			wp_redirect( admin_url( 'profile.php' ) );
    			exit; // never forget this after wp_redirect!
    		}

    into that:

    if ( get_user_meta( $current_user->ID, 'force-password-change', true ) ) {
    			wp_redirect( home_url() . '/profil/' );
    			exit; // never forget this after wp_redirect!
    		}

    but as you may guess, it’s an infinite loop.
    Could you please explain me why, and tell me what I should do to make this work?

    Thanks a lot.

    Regards,
    Brian

    https://wordpress.org/plugins/force-password-change/

  • The topic ‘Front end profile page’ is closed to new replies.