Simeon Meder
asked 6 years ago

We want to disable the function, that someone can enter a private answer (only me&administrator).
Where can we do that?

1 Answers
answered 6 years ago

If you want to disable the private option in the question form, you can configure in the Question Setting of plugin. However, if you want to disable this option in the answer section, you can use the following code to hide this section: 
.dwqa-answer-form .dwqa-select { display: none; }
Or open the answer-submit-form.php file in the templates folder of the plugin find the following code to remove it:

<?php if ( is_user_logged_in() ) : ?>
  <select class="dwqa-select" name="dwqa-status">
    <optgroup label="<?php _e( 'Who can see this?', 'dwqa' ) ?>">
      <option value="publish"><?php _e( 'Public', 'dwqa' ) ?></option>
      <option value="private"><?php _e( 'Only Me &amp; Admin', 'dwqa' ) ?></option>
<?php endif; ?>
Powered by DW Question & Answer Pro