Private questions by default

4.05K views
0

Hello, is there a way to enable questions to be private by default?

0

Here, simply add this to your theme function.php:

function my_default_ask_field($form){
	$form['fields'][] = array(
        'name' => 'is_private',
        'type'  => 'hidden',
        'desc'  => __('Only visible to admin and moderator.', 'ap'),
        'value' => true,
        'order' => 12,
        'show_desc_tip' => false
    );
   	return $form;
}
add_filter('ap_ask_form_fields', 'my_default_ask_field');

hmmm. didn’t work. The theme function.php correct? not the plugin right?