Custom Redirect after successful registration using form-user-register.php
I can not seem to figure out how to redirect the user back to the original page after a successful registration using form-user-register.php. It simply sends the user to the wp-login.php.
Looking at the code, I can see that bbp_user_register_fields() has a filter within it as follows:
$redirect_to = apply_filters( ‘bbp_user_register_redirect_to’, ” );
bbp_redirect_to_field( add_query_arg( array( ‘checkemail’ => ‘registered’ ), $redirect_to ) );
I can not seem to get this to work.
Can someone point me in the right direction?
You must be logged in to reply to this topic.