1. Home
  2. Docs
  3. FAQ & Common issues
  4. How the custom URIs and redirects are stored?

How the custom URIs and redirects are stored?

To optimize the performance, the custom URIs, redirects, permastructures and plugin settings are serialized and stored in wp_options table.

Both arrays are registered as globals and can be accessed and/or filtered by 3rd party plugins:

global $permalink_manager_uris, $permalink_manager_redirects;

Sample array with custom permalinks ($permalink_manager_uris global)

Array (
	[10] => custom-uri/used-by-a-single-post
	[12] => another-custom-uri/used-by-another-single-post
	...
	[tax-20] => custom-uri/used-by-a-single-term-tag-or-category
	[tax-28] => another-custom-term-permalink-example
)

Sample array with custom redirects ($permalink_manager_redirects global)

Array (
	[10] => Array (
		[0] => first-custom-redirect/asigned-to-a-single-post
		[1] => second-custom-redirect/asigned-to-a-single-post
		[2] => third-custom-redirect/asigned-to-a-single-post
	)
	[12] => Array (
		[0] => different-first-custom-redirect/asigned-to-another-single-post
		[1] => different-second-custom-redirect/asigned-to-another-single-post
		[2] => different-third-custom-redirect/asigned-to-another-single-post
	)
	...
	[tax-20] => Array (
		[0] => first-custom-redirect/asigned-to-a-single-term
		[1] => second-custom-redirect/asigned-to-a-single-term
		[2] => third-custom-redirect/asigned-to-a-single-term
	)
	[tax-28] => Array (
		[0] => different-first-custom-redirect/asigned-to-another-single-category
		[1] => different-second-custom-redirect/asigned-to-another-single-category
		[2] => different-third-custom-redirect/asigned-to-another-single-category
	)
)
The full arrays can be previewed in “Tools -> Permalink Manager -> Debug” section.

Instructions for more advanced users

Was this article helpful to you? Yes No

How can we help?

Wait!!! Before you go...

Still not convinced? Use following discount code during Gumroad checkout and get 10% off!

BLOG

If you have any questions or need further information, please feel free to contact me via email: