Vaibhav
asked 3 weeks ago

Currently,In my website I am using DW  and ultimate member plugin.
I want that if someone visits author’s ultimate user profile,he/she should see question asked by him,answers answered by him on the same page

1 Answers
DominicStaff
answered 3 weeks ago

You can add the following code to the functions.php of your theme to redirect to the author profile when clicking the author name. 

add_filter('dwqa_get_author_link', 'dwqa_buddypress_profile_link', 10, 3);
    function dwqa_buddypress_profile_link($url, $user_id, $user){
        if(function_exists('bp_core_get_user_domain')){
            return bp_core_get_user_domain($user_id);
        }
    return $url;
}
Powered by DW Question & Answer Pro