dobosalina (@dobosalina)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • dobosalina
    Participant

    @dobosalina

    This is the code

    
    function bp_redirect($user)
      $redirect_url = "";
    
    if (defined('ICL_LANGUAGE_CODE')) {
        switch (ICL_LANGUAGE_CODE) {
    		
            case 'fr':
                $redirect_url = "https://volunteerteacher.org/fr/enregistrement-avec-succes/";
              break;
    
    		  default:
                  $redirect_url = 'https://volunteerteacher.org/registration-successful/"';
              break;
    		  
    		  
        }
    	bp_core_redirect($redirect_url);
    }
    return $redirect_url;
    }
    add_action('bp_core_signup_user', 'bp_redirect', 100, 1);
    
    
Viewing 1 replies (of 1 total)