Dávid Kocsis
asked 4 years ago

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
DominicStaff
answered 4 years ago

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.

Powered by DW Question & Answer Pro