I went through the FAQ and find how to redirect the user to his profile after login and the answer was:
Add this code snippet to sweetdate-child/functions.php
|
|
/* Filter the redirect url for login*/
add_filter(“login_redirect”,“kleo_redirect_to_profile”,100,3);
function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
/*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
    if(!is_super_admin($user->ID))
        return bp_core_get_user_domain($user->ID );
    else
        return $redirect_to_calculated; /*if site admin*/
}
|
I paste the above-mentioned code but the following message came up…how to fix it please because it is still there even after i deleted that code.
Warning: Cannot modify header information – headers already sent by (output started at /home2/raafat/public_html/matchingzone.com/wp-content/themes/sweetdate-child/functions.php:21) in/home2/raafat/public_html/matchingzone.com/wp-includes/pluggable.php on line 1228