How to make all answers private by default

3.10K viewsGeneral
0

Thanks for this great plugin. Is there a way of code I could use to make all answers to all questions private by default? I don’t want the public option to be available.

Answered question
0

You can use this two hooks for overriding post_status before post is actually saved:
ap_pre_insert_question
ap_pre_update_question
Using this two hooks, you can change post_status to private_post

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