0, 'max' => 100, 'interval' => 1, 'unit' => null, ); $field = array_merge( $defaults, $field ); echo '
'; // Don't make this a hidden field to prevent triggering issues with wp_customise. echo ''; echo '
'; echo '' . $field['value'] . ''; if ( $field['unit'] ) echo '' . $field['unit'] . ''; }