Uma checkbox de seleção Opção para descrição em Widget

 'post-widget', 'description' => esc_html__('A Post Thumbnail Widget', 'simplisto' ) ) ); } public function form( $instance ) { $title = isset( $instance['title'] ) ? $instance['title'] : ''; $number_of_posts = isset( $instance['number_of_posts'] ) ? absint( $instance['number_of_posts'] ) : 5; $number_of_words = isset( $instance['number_of_words'] ) ? absint( $instance['number_of_words'] ) : 20; $cat_include = isset( $instance['cat_include'] ) ? $instance['cat_include'] : ''; $cat_exclude = isset( $instance['cat_exclude'] ) ? $instance['cat_exclude'] : ''; $vertical_sidebar_check = isset( $instance[ 'vertical_sidebar_check' ] ) && ( 'on' === $instance[ 'vertical_sidebar_check' ] ) ? 'on' : 'off'; ?> 

<label for="get_field_id( 'title' ); ?>"> <input class="widefat" id="get_field_id( 'title' ); ?>" name="get_field_name( 'title' ); ?>" type="text" value="" />

<label for="get_field_id( 'number_of_posts' ); ?>"> <input class="tiny-text" id="get_field_id( 'number_of_posts' ); ?>" name="get_field_name( 'number_of_posts' ); ?>" type="number" step="1" min="1" value="" size="3" />

<label for="get_field_id( 'number_of_words' ); ?>"> <input class="tiny-text" id="get_field_id( 'number_of_words' ); ?>" name="get_field_name( 'number_of_words' ); ?>" type="number" step="1" min="1" value="" size="4" />

<label for="get_field_id( 'cat_include' ); ?>"> <input class="widefat" id="get_field_id( 'cat_include' ); ?>" name="get_field_name( 'cat_include' ); ?>" type="text" value="" /> Comma separated list of category IDs to include in post query. eg: 11,17,347
If blank, all categories will be included.

<label for="get_field_id( 'cat_exclude' ); ?>"> <input class="widefat" id="get_field_id( 'cat_exclude' ); ?>" name="get_field_name( 'cat_exclude' ); ?>" type="text" value="" /> Comma separated list of category IDs to exclude in post query. eg: 1,16
If blank, no categories will be excluded.

<input class="checkbox" type="checkbox" id="get_field_id( 'vertical_sidebar_check' ); ?>" name="get_field_name( 'vertical_sidebar_check' ); ?>" /> <label for="get_field_id( 'vertical_sidebar_check' ); ?>">

$category_include, 'category__not_in' => $category_exclude, /* Order by date. */ 'orderby' => 'date', /* Show all posts. */ 'posts_per_page' => $number_of_posts, ); $query = new WP_Query( $queryArgs ); if ( $query->have_posts() ) : ?> <ul class="unbullet"> have_posts() ) : $query->the_post(); ?> <li class="snippet-box">
<!-- --> 'hundred' ) ); ?>

<a href="https://wordpress.stackexchange.com//questions/275592/a-checkbox-option-for-description-in-widget/" title="">

<!-- <a href="https://wordpress.stackexchange.com//questions/275592/a-checkbox-option-for-description-in-widget/" title=""> 'img-responsive' ) ); ?> -->

O widget acima está sendo executado sem qualquer problema, mas eu quero adicionar uma funcionalidade que deve haver uma checkbox de verificação na descrição . Se a checkbox de seleção estiver marcada, então somente

Solutions Collecting From Web of "Uma checkbox de seleção Opção para descrição em Widget"