Vehicle_URLs_By_VIN::redirect_vin_urls()
Redirects the request to a vehicle permalink if a ‘vin’ query variable is present.
Return Return
(void)
Source Source
File: includes/class-vehicle-urls-by-vin.php
public function redirect_vin_urls() { $vin = get_query_var( 'vin' ); if ( $vin ) { wp_safe_redirect( $this->find_vehicle_url( $vin ) ); exit; } }
Expand full source codeCollapse full source codeView on Github