Inventory_Presser_Plugin::add_pretty_search_urls()
Action hook callback that adds rewrite rules to the global $wp_rewrite.
Contents
Description Description
These rewrite rules are what power URLs like /inventory/make/subaru.
Return Return
(void)
Source Source
File: inventory-presser.php
public function add_pretty_search_urls() { global $wp_rewrite; $wp_rewrite->rules = $this->generate_rewrite_rules( INVP::POST_TYPE ) + $wp_rewrite->rules; }
Expand full source code Collapse full source code View on Github