Vehicle_URLs_By_VIN::add_hooks()

Adds hooks that power the URL redirects.

On This Page


Return Return

(void)


Top ↑

Source Source

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

		public function add_hooks() {
			add_action( 'init', array( $this, 'add_vin_rewrite' ) );
			add_filter( 'query_vars', array( $this, 'add_query_vars' ) );
			add_action( 'template_redirect', array( $this, 'redirect_vin_urls' ) );
		}