field, array( 'inline' => false, 'query_args' => array(), 'check_all' => false, 'check_all_text' => esc_html__( 'Check/Uncheck All' ), ) ); $inline_class = ( $args['inline'] ) ? ' class="csf--inline-list"' : ''; echo $this->field_before(); if ( isset( $this->field['options'] ) ) { $value = ( is_array( $this->value ) ) ? $this->value : array_filter( (array) $this->value ); $options = $this->field['options']; $options = ( is_array( $options ) ) ? $options : array_filter( $this->field_data( $options, false, $args['query_args'] ) ); if ( is_array( $options ) && ! empty( $options ) ) { echo '