Hi!
Staff answer detect doesn’t work.
function dwqa_is_staff_answer( $answer ) {
if ( ! $answer ) {
$answer = get_post( get_the_ID() );
if ( 'dwqa-answer' != $answer->post_status ) {
return false;
}
}
if ( dwqa_current_user_can( 'edit_question') ) {
return true;
}
return false;
}
What is the problem?
1 Answers
I have checked on our demo and it still works fine. Please send me username & password of your site( via private answer) we will help you check and resolve it.
Please login or Register to submit your answer