diff --git a/wpas-field.php b/wpas-field.php index dc8cb2c..64e48fa 100644 --- a/wpas-field.php +++ b/wpas-field.php @@ -255,6 +255,7 @@ private function build_options_list($elements = array(), $field_func, $level = 0 $output .= $pre; foreach($elements as $element) { + if (in_array($element['value'],$this->exclude)) continue; $output .= call_user_func($field_func, $element['value'],$element['label'], $level); $output .= $this->build_options_list($element['children'], $field_func, $level+1, $pre, $post); }