Inventory_Presser_Plugin::add_pretty_search_urls()

add_pretty_search_urls


Description Description

Action hook callback that adds rewrite rules to the global $wp_rewrite. These rewrite rules are what power URLs like /inventory/make/subaru.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

	function add_pretty_search_urls()
	{
		global $wp_rewrite;
		$wp_rewrite->rules = $this->generate_rewrite_rules( INVP::POST_TYPE ) + $wp_rewrite->rules;
	}