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?
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;
}
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?
@Dominic This worked great. It would have been really helpful to have this in the installation instructions.
@agentlewis Thank you!
@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.
Please login or Register to submit your answer