• Resolved argie01

    (@argie01)


    Hi,

    I’m testing this plugin in localhost, and I’ve activated the option “Allow users to add answers (democracy)”.

    The problem I see here is that all the new answers added are showed in the list of answers to vote.
    It is possible to allow users to vote but their answers do not appear among the options to vote?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author Timur Kamaev

    (@tkama)

    you can delete it with filter

    
    //$answers = apply_filters('dem_set_answers', $answers, $this->poll );
    add_filter('dem_set_answers', function($answers){
        // front end only
        if(!is_admin()){
            foreach( $answers as $key => $answ )
                if( $answ->added_by )
                    unset($answers[$key]);
        }
        
        return $answers;
    });
    
Viewing 1 replies (of 1 total)
  • The topic ‘How to avoid showing added answers’ is closed to new replies.