diff --git a/includes/core/class-validation.php b/includes/core/class-validation.php index ae0f38b5..9645bfbb 100644 --- a/includes/core/class-validation.php +++ b/includes/core/class-validation.php @@ -95,6 +95,7 @@ if ( ! class_exists( 'um\core\Validation' ) ) { ! empty( $fields[ $key ]['custom_dropdown_options_source'] ) && function_exists( $fields[ $key ]['custom_dropdown_options_source'] ) ){ $arr_options = call_user_func( $fields[ $key ]['custom_dropdown_options_source'] ); + $fields[ $key ]['options'] = array_keys( $arr_options ); } // Unset changed value that doesn't match the option list