38929a1c by Jeff Balicki

custom_redirects

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent cbeff607
......@@ -322,8 +322,10 @@ function custom_redirects() {
$user = wp_get_current_user();
$updated_profile = get_user_meta( $user->ID, 'updated_profile', true );
if(!$updated_profile){
wp_redirect( home_url( '/account/profile/' ) );
die;
if (!is_page('/account/profile/') ) {
wp_redirect( home_url( '/account/profile/' ) );
die;
}
}
}
......