From 8bcc8287afc15df0c60e87eedfeb03a0d8d41c2e Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Mon, 17 Feb 2020 20:35:17 +0800 Subject: [PATCH] Add notice element to a select field --- includes/core/class-fields.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index c4c79956..330b3139 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -3056,10 +3056,13 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ''; - if ( $this->is_error( $form_key ) ) { - $output .= $this->field_error( $this->show_error( $form_key ) ); + if ( $this->is_error( $form_key) ) { + $output .= $this->field_error( $this->show_error( $form_key) ); + }else if ( $this->is_notice( $form_key) ) { + $output .= $this->field_notice( $this->show_notice( $form_key) ); } + $output .= ''; break;