Vehicle_URLs_By_VIN::hooks()

hooks


Description Description

Adds hooks that power the URL redirects.


Top ↑

Return Return

(void)


Top ↑

Source Source

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

		function 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' ) );
		}