field, [ 'multiple' => false, 'options' => [], 'query_args' => [], ] ); $value = ( is_array( $this->value ) ) ? $this->value : array_filter( (array) $this->value ); echo wp_kses_post( $this->field_before() ); if ( isset( $this->field['options'] ) ) { $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 '
'; } else { if ( ! empty( $this->field['empty_message'] ) ) { echo esc_attr( $this->field['empty_message'] ); } else { echo esc_html__( 'No data available.', 'adminify' ); } } } echo wp_kses_post( $this->field_after() ); } } }