Martin
asked 2 weeks ago

I´m considering buying the pro version of the DWQA plugin I just need to get a few things working before I do. On my site the plugin integrates somewhat with buddypress, however I would like to redirect the question/answer author link that appears next to the question/answer to the buddypress profile page.   As it is now it only links to questions answered by that particular user, but not the users buddypress profile. How can I achieve this?

1 Answers
DominicStaff
answered 2 weeks ago

In this case, you can add the following code to the functions.php file to redirect into the buddypress profile page.

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;
}  
Are Martin Kallaak
replied 2 weeks ago

Thanks, I have been using the free version for a while and was therefore also wondering what will happen to the already existing questions and answers when i upgrade to pro?

agentlewis
replied 1 week ago

@Dominic This worked great. It would have been really helpful to have this in the installation instructions.

Dominic Staff
replied 1 week ago

@agentlewis Thank you!

Dominic Staff
replied 1 week ago

@Are Martin Kallaak, You can disable the Free version and upload pro version then active the pro plugin, all the question and answer from the Free version won’t lose.

Powered by DW Question & Answer Pro