Two small requests
-
a. Allow developers to add custom fields in your question submission form.
b.Allow developers to handle the custom field which gets posted in the submission form.For a : In template file templates/question-submit-form.php, you already have provided two useful hooks “dwqa_before/after_question_submit_form”, it would be really great if you can add them inside the Form tag or create new hook dwqa_before_question_submit_button just before the submit button.
For b : In handle.php function submit_question, after the new question is inserted and before redirection to the new quesiton, can you add an action hook and pass the question id argument,
do_action(‘dwqa_after_insert_question’,$new_question);Both requests would really help in adding custom fields to the question format which can be later filtered out using the stored meta values.
The topic ‘Two small requests’ is closed to new replies.