38929a1c by Jeff Balicki

custom_redirects

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent cbeff607
...@@ -322,9 +322,11 @@ function custom_redirects() { ...@@ -322,9 +322,11 @@ function custom_redirects() {
322 $user = wp_get_current_user(); 322 $user = wp_get_current_user();
323 $updated_profile = get_user_meta( $user->ID, 'updated_profile', true ); 323 $updated_profile = get_user_meta( $user->ID, 'updated_profile', true );
324 if(!$updated_profile){ 324 if(!$updated_profile){
325 if (!is_page('/account/profile/') ) {
325 wp_redirect( home_url( '/account/profile/' ) ); 326 wp_redirect( home_url( '/account/profile/' ) );
326 die; 327 die;
327 } 328 }
329 }
328 330
329 } 331 }
330 add_action( 'template_redirect', 'custom_redirects' ); 332 add_action( 'template_redirect', 'custom_redirects' );
...\ No newline at end of file ...\ No newline at end of file
......