8add9d28 by Jeff Balicki

registration_redirect

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 955abec7
...@@ -299,12 +299,15 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { ...@@ -299,12 +299,15 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) {
299 299
300 } 300 }
301 301
302 add_action( 'wpo365/user/creating', 'registration_redirect', 10, 1 ); 302 //add_action( 'wpo365/user/creating', 'registration_redirect', 10, 1 );
303 303
304 function registration_redirect($wp_usr_id) { 304 function registration_redirect() {
305 305
306 error_log('registration_redirect'.$wp_usr_id); 306 error_log('registration_redirect');
307 wp_redirect(site_url('/account/profile/')); 307 wp_redirect(site_url('/account/profile/'));
308 error_log('redirected'.$wp_usr_id); 308 error_log('redirected');
309 309
310 }
...\ No newline at end of file ...\ No newline at end of file
310 }
311
312
313 add_filter( 'registration_redirect', 'registration_redirect' );
...\ No newline at end of file ...\ No newline at end of file
......