WP Manifestindependent plugin directory
manifest / integrations / ko-nhtsa-vin-decoder

KO - NHTSA VIN Decoder

Provides an AJAX-backed NHTSA vPIC VIN decoder shortcode and an API Connectors admin screen.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wy4tt34rp/ko-nhtsa-vin-decoder/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Adds a NHTSA vPIC VIN decoder shortcode and an API Connectors admin screen.

Description

KO - NHTSA VIN Decoder provides a public shortcode for decoding VINs through the NHTSA vPIC API.

Primary shortcode:

[ko_nhtsa_vin_decoder]

The shortcode is designed to be pasted into a Divi Code Module or any WordPress content area that supports shortcodes. The front-end form submits through WordPress AJAX, so the browser does not need to call the NHTSA API directly.

The admin screen is available under:

API Connectors > NHTSA VIN

Admin features:

  • Configure the NHTSA vPIC vehicles API base URL.
  • Choose DecodeVinValuesExtended or DecodeVinValues.
  • Set request timeout and transient cache TTL.
  • Allow or block partial VIN decoding.
  • Edit the public intro text.
  • Choose summary result fields.
  • Run admin test decodes.
  • View recent admin test history.

Shortcode Examples

[ko_nhtsa_vin_decoder]

[ko_nhtsa_vin_decoder title="VIN Decoder"]

[ko_nhtsa_vin_decoder show_title="false"]

[ko_nhtsa_vin_decoder show_intro="false"]

[ko_nhtsa_vin_decoder button="Decode VIN"]

[ko_nhtsa_vin_decoder vin_label=""]

[ko_nhtsa_vin_decoder show_title="false" show_intro="false" button="Decode VIN" vin_label=""]

[ko_nhtsa_vin_decoder show_model_year="yes"]

wp-config.php Overrides

NHTSA vPIC does not require credentials. If desired, production settings can be locked in wp-config.php:

define('KO_NHTSA_VIN_DECODER_API_BASE_URL', 'https://vpic.nhtsa.dot.gov/api/vehicles');

define('KO_NHTSA_VIN_DECODER_TIMEOUT', 20);

define('KO_NHTSA_VIN_DECODER_CACHE_TTL', 43200);

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or upload the ZIP through Plugins > Add New.
  2. Activate KO - NHTSA VIN Decoder.
  3. Open API Connectors > NHTSA VIN.
  4. Paste [ko_nhtsa_vin_decoder] into a Divi Code Module.

Changelog

1.0.13

  • Add shortcode attributes for hiding intro text and customizing or hiding the VIN label.

1.0.12

  • Match the NHTSA shortcode wrapper gap to the PODS 5px layout spacing.

1.0.11

  • Tighten the intro-to-VIN-label spacing to match PODS VIN Lookup.

1.0.10

  • Collapse the empty frontend status row so decoded results sit closer to the VIN field like PODS VIN Lookup.

1.0.9

  • Tighten public result spacing and set gray labels to 11px with returned values at 14px.

1.0.8

  • Change the public shortcode button color to #76be43.

1.0.7

  • Remove plugin-level shortcode h2 styling so the active theme controls heading appearance.

1.0.6

  • Align the public title, VIN input text, focus behavior, and button delivery with the PODS VIN Lookup shortcode.

1.0.5

  • Matched the frontend VIN input padding and text weight to the Vehicle Paint Lookup field.

1.0.4

  • Removed padding from the frontend decoder card wrapper.

1.0.3

  • Capped the Decode VIN button width at 200px.

1.0.2

  • Removed the visible Model Year field from the default shortcode UI and capped the VIN field width.

1.0.1

  • Updated frontend decoder card width/frame styling and Decode VIN button styling.

1.0.0

  • Initial release.