Vehicle_URLs_By_VIN::redirect_vin_urls()

redirect_vin_urls


Description Description

Redirects the request to a vehicle permalink if a 'vin' query variable is present.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-vehicle-urls-by-vin.php

		function redirect_vin_urls() {
			$vin = get_query_var('vin');
			if ( $vin ) {
				exit( wp_redirect( $this->find_vehicle_url( $vin ) ) );
			}
		}