$details) { if($details['value']) { //display meta box if at least one value is set add_meta_box('perfmatters', 'Perfmatters', array('Perfmatters\Meta', 'load_meta_box'), get_post_types(array('public' => true)), 'side', 'high'); break; } } } //display meta box public static function load_meta_box() { global $post; //noncename needed to verify where the data originated echo ''; //print inputs foreach(self::$meta_options as $id => $details) { //existing meta value $meta = get_post_meta($post->ID, 'perfmatters_exclude_' . $id, true); //individual input echo '