asked 3 years 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
answered 3 years 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){
            return bp_core_get_user_domain($user_id);
    return $url;
Powered by DW Question & Answer Pro