MOSAB ALMOMANI
asked 5 years ago

I want to make the identity of my customers anonymous .. so the questions page should not show any username or email .. instead, it might show a serial number, yet I need to get a list of my customer emails and username.. is there a way where i can do this 

1 Answers
DominicStaff
answered 5 years ago

In this case, you can show user ID in the question list. If you want to have it, you can create “dwqa-templates” folder in your theme then copy/paste the content-question.php file from the plugins/dw-question-answer/templates folder into the dwqa-templates folder then open the content-question.php file find the line 25.
Replace the following code: 

<?php printf( __( '<span><a href="%s">%s%s</a> %s %s ago</span>', 'dw-question-answer' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), $text, $time ) ?>

With new code: 

<?php printf( __( '<span><a href="%s">%s%s</a> %s %s ago</span>', 'dw-question-answer' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author_meta( 'ID' ), $text, $time ) ?>

 
 

Powered by DW Question & Answer Pro