Can I set up time for the question to be answered here?

4.03K viewsCore
0

When I post a question, I want to set up a closing time for it. Means after that time people can’t answer the question anymore

0

Simply override answer form and and add this if else before file:

$time_after_no_answer = 86400 // One days
if(current_time() > get_the_date('timestamp') + $time_after_no_answer)){
    //answer-form.php contents here
}

This above code will check if question time is greater then current time, then only answer form will be visible.

You are viewing 1 out of 1 answers, click here to view all answers.