Liam Howard
asked 1 month ago

Hi, is it possible at all to not use the default DWQA user page at all? But instead redirect the link to a custom profile page, ie. BuddyPress’s user page?

1 Answers
DominicStaff
answered 1 month ago

You can add the following code to the functions.php file:

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