Vehicle_URLs_By_VIN::hooks()
hooks
Contents
Description Description
Adds hooks that power the URL redirects.
Return Return
(void)
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' ) ); }
Expand full source code Collapse full source code View on Github