registration_redirect
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
1 changed file
with
10 additions
and
1 deletions
| ... | @@ -298,4 +298,13 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { | ... | @@ -298,4 +298,13 @@ add_action( 'profile_update', function ( $user_id, $old_user_data ) { |
| 298 | endif; | 298 | endif; |
| 299 | 299 | ||
| 300 | } | 300 | } |
| 301 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 301 | |||
| 302 | |||
| 303 | |||
| 304 | add_action( 'user_register', 'registration_redirect', 10, 1 ); | ||
| 305 | |||
| 306 | function registration_redirect( $user_id ) { | ||
| 307 | |||
| 308 | wp_redirect(site_url('/account/profile/')); | ||
| 309 | |||
| 310 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment