b3_redirect_after_register()

Description

A filter to redirect a user to a custom location after registration.

Arguments

  • (string) - $url
    The initial url where to redirect to.

Return

Your custom url where to redirect to.

Usage

  1. function b3_redirect_after_register_example( $url ) {
  2.  
  3.     $login_url = b3_get_login_url();
  4.     if ( false != $login_url ) {
  5.         $url = add_query_arg( 'registered', 'success', $login_url );
  6.     }
  7.  
  8.     return $url;
  9. }
  10. add_filter( 'b3_redirect_after_register', 'b3_redirect_after_register_example' );

Used in

Tags