Skip to content

Instantly share code, notes, and snippets.

@csaborio001
Created July 2, 2021 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csaborio001/d6f733cf2e69e09955f77c35090ce130 to your computer and use it in GitHub Desktop.
Save csaborio001/d6f733cf2e69e09955f77c35090ce130 to your computer and use it in GitHub Desktop.
WP_Rewrite Object
(
[permalink_structure] => /%postname%/
[use_trailing_slashes] => 1
[author_base] => author
[page_structure] => %pagename%
[search_base] => search
[comments_base] => comments
[pagination_base] => page
[comments_pagination_base] => comment-page
[feed_base] => feed
[front] => /
[root] =>
[index] => index.php
[matches] =>
[rules] => Array
(
[^wp-json/?$] => index.php?rest_route=/
[^wp-json/(.*)?] => index.php?rest_route=/$matches[1]
[^index.php/wp-json/?$] => index.php?rest_route=/
[^index.php/wp-json/(.*)?] => index.php?rest_route=/$matches[1]
[^wp-sitemap\.xml$] => index.php?sitemap=index
[^wp-sitemap\.xsl$] => index.php?sitemap-stylesheet=sitemap
[^wp-sitemap-index\.xsl$] => index.php?sitemap-stylesheet=index
[^wp-sitemap-([a-z]+?)-([a-z\d_-]+?)-(\d+?)\.xml$] => index.php?sitemap=$matches[1]&sitemap-subtype=$matches[2]&paged=$matches[3]
[^wp-sitemap-([a-z]+?)-(\d+?)\.xml$] => index.php?sitemap=$matches[1]&paged=$matches[2]
[kd_gallery/?$] => index.php?post_type=kd_gallery
[kd_gallery/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_gallery&feed=$matches[1]
[kd_gallery/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_gallery&feed=$matches[1]
[kd_gallery/page/([0-9]{1,})/?$] => index.php?post_type=kd_gallery&paged=$matches[1]
[kd_artwork/?$] => index.php?post_type=kd_artwork
[kd_artwork/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_artwork&feed=$matches[1]
[kd_artwork/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_artwork&feed=$matches[1]
[kd_artwork/page/([0-9]{1,})/?$] => index.php?post_type=kd_artwork&paged=$matches[1]
[category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/embed/?$] => index.php?category_name=$matches[1]&embed=true
[category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
[category/(.+?)/?$] => index.php?category_name=$matches[1]
[tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/([^/]+)/embed/?$] => index.php?tag=$matches[1]&embed=true
[tag/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
[tag/([^/]+)/?$] => index.php?tag=$matches[1]
[type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
[type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
[type/([^/]+)/embed/?$] => index.php?post_format=$matches[1]&embed=true
[type/([^/]+)/page/?([0-9]{1,})/?$] => index.php?post_format=$matches[1]&paged=$matches[2]
[type/([^/]+)/?$] => index.php?post_format=$matches[1]
[technique/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?technique=$matches[1]&feed=$matches[2]
[technique/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?technique=$matches[1]&feed=$matches[2]
[technique/([^/]+)/embed/?$] => index.php?technique=$matches[1]&embed=true
[technique/([^/]+)/page/?([0-9]{1,})/?$] => index.php?technique=$matches[1]&paged=$matches[2]
[technique/([^/]+)/?$] => index.php?technique=$matches[1]
[kd_gallery/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[kd_gallery/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[kd_gallery/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_gallery/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_gallery/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[kd_gallery/[^/]+/attachment/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[kd_gallery/([^/]+)/embed/?$] => index.php?kd_gallery=$matches[1]&embed=true
[kd_gallery/([^/]+)/trackback/?$] => index.php?kd_gallery=$matches[1]&tb=1
[kd_gallery/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?kd_gallery=$matches[1]&feed=$matches[2]
[kd_gallery/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?kd_gallery=$matches[1]&feed=$matches[2]
[kd_gallery/([^/]+)/page/?([0-9]{1,})/?$] => index.php?kd_gallery=$matches[1]&paged=$matches[2]
[kd_gallery/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?kd_gallery=$matches[1]&cpage=$matches[2]
[kd_gallery/([^/]+)(?:/([0-9]+))?/?$] => index.php?kd_gallery=$matches[1]&page=$matches[2]
[kd_gallery/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[kd_gallery/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[kd_gallery/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_gallery/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_gallery/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[kd_gallery/[^/]+/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[kd_artwork/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[kd_artwork/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[kd_artwork/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_artwork/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_artwork/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[kd_artwork/[^/]+/attachment/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[kd_artwork/([^/]+)/embed/?$] => index.php?kd_artwork=$matches[1]&embed=true
[kd_artwork/([^/]+)/trackback/?$] => index.php?kd_artwork=$matches[1]&tb=1
[kd_artwork/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?kd_artwork=$matches[1]&feed=$matches[2]
[kd_artwork/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?kd_artwork=$matches[1]&feed=$matches[2]
[kd_artwork/([^/]+)/page/?([0-9]{1,})/?$] => index.php?kd_artwork=$matches[1]&paged=$matches[2]
[kd_artwork/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?kd_artwork=$matches[1]&cpage=$matches[2]
[kd_artwork/([^/]+)(?:/([0-9]+))?/?$] => index.php?kd_artwork=$matches[1]&page=$matches[2]
[kd_artwork/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[kd_artwork/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[kd_artwork/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_artwork/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[kd_artwork/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[kd_artwork/[^/]+/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[robots\.txt$] => index.php?robots=1
[favicon\.ico$] => index.php?favicon=1
[.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$] => index.php?feed=old
[.*wp-app\.php(/.*)?$] => index.php?error=403
[.*wp-register.php$] => index.php?register=true
=> index.php?&feed=$matches[1]
[(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
=> index.php?&embed=true
[page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
[comment-page-([0-9]{1,})/?$] => index.php?&page_id=15&cpage=$matches[1]
[comments/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[comments/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[comments/embed/?$] => index.php?&embed=true
[search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/embed/?$] => index.php?s=$matches[1]&embed=true
[search/(.+)/page/?([0-9]{1,})/?$] => index.php?s=$matches[1]&paged=$matches[2]
[search/(.+)/?$] => index.php?s=$matches[1]
[author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/embed/?$] => index.php?author_name=$matches[1]&embed=true
[author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
[author/([^/]+)/?$] => index.php?author_name=$matches[1]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/embed/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&embed=true
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]
[([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/embed/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&embed=true
[([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]
[([0-9]{4})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]
[([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/embed/?$] => index.php?year=$matches[1]&embed=true
[([0-9]{4})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&paged=$matches[2]
[([0-9]{4})/?$] => index.php?year=$matches[1]
[.?.+?/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[.?.+?/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[.?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[.?.+?/attachment/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[(.?.+?)/embed/?$] => index.php?pagename=$matches[1]&embed=true
[(.?.+?)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(.?.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(.?.+?)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(.?.+?)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(.?.+?)(?:/([0-9]+))?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[[^/]+/attachment/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
[([^/]+)/embed/?$] => index.php?name=$matches[1]&embed=true
[([^/]+)/trackback/?$] => index.php?name=$matches[1]&tb=1
[([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?name=$matches[1]&feed=$matches[2]
[([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?name=$matches[1]&feed=$matches[2]
[([^/]+)/page/?([0-9]{1,})/?$] => index.php?name=$matches[1]&paged=$matches[2]
[([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?name=$matches[1]&cpage=$matches[2]
[([^/]+)(?:/([0-9]+))?/?$] => index.php?name=$matches[1]&page=$matches[2]
[[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[[^/]+/([^/]+)/embed/?$] => index.php?attachment=$matches[1]&embed=true
)
[extra_rules] => Array
(
)
[extra_rules_top] => Array
(
[^wp-json/?$] => index.php?rest_route=/
[^wp-json/(.*)?] => index.php?rest_route=/$matches[1]
[^index.php/wp-json/?$] => index.php?rest_route=/
[^index.php/wp-json/(.*)?] => index.php?rest_route=/$matches[1]
[^wp-sitemap\.xml$] => index.php?sitemap=index
[^wp-sitemap\.xsl$] => index.php?sitemap-stylesheet=sitemap
[^wp-sitemap-index\.xsl$] => index.php?sitemap-stylesheet=index
[^wp-sitemap-([a-z]+?)-([a-z\d_-]+?)-(\d+?)\.xml$] => index.php?sitemap=$matches[1]&sitemap-subtype=$matches[2]&paged=$matches[3]
[^wp-sitemap-([a-z]+?)-(\d+?)\.xml$] => index.php?sitemap=$matches[1]&paged=$matches[2]
[kd_gallery/?$] => index.php?post_type=kd_gallery
[kd_gallery/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_gallery&feed=$matches[1]
[kd_gallery/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_gallery&feed=$matches[1]
[kd_gallery/page/([0-9]{1,})/?$] => index.php?post_type=kd_gallery&paged=$matches[1]
[kd_artwork/?$] => index.php?post_type=kd_artwork
[kd_artwork/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_artwork&feed=$matches[1]
[kd_artwork/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_type=kd_artwork&feed=$matches[1]
[kd_artwork/page/([0-9]{1,})/?$] => index.php?post_type=kd_artwork&paged=$matches[1]
)
[non_wp_rules] => Array
(
[^galleries/([^/]*)/?] => /kd_artwork/?gallery-name=$matches[1]
)
[extra_permastructs] => Array
(
[category] => Array
(
[with_front] => 1
[ep_mask] => 512
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => /category/%category%
)
[post_tag] => Array
(
[with_front] => 1
[ep_mask] => 1024
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => /tag/%post_tag%
)
[post_format] => Array
(
[with_front] => 1
[ep_mask] => 0
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => /type/%post_format%
)
[technique] => Array
(
[with_front] => 1
[ep_mask] => 0
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => /technique/%technique%
)
[kd_gallery] => Array
(
[with_front] =>
[ep_mask] => 1
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => kd_gallery/%kd_gallery%
)
[kd_artwork] => Array
(
[with_front] =>
[ep_mask] => 1
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => kd_artwork/%kd_artwork%
)
[product] => Array
(
[with_front] => 1
[ep_mask] => 0
[paged] => 1
=> 1
[forcomments] =>
[walk_dirs] => 1
[endpoints] => 1
[struct] => /shop/%product%
)
)
[endpoints] => Array
(
)
[use_verbose_rules] =>
[use_verbose_page_rules] => 1
[rewritecode] => Array
(
[0] => %year%
[1] => %monthnum%
[2] => %day%
[3] => %hour%
[4] => %minute%
[5] => %second%
[6] => %postname%
[7] => %post_id%
[8] => %author%
[9] => %pagename%
[10] => %search%
[11] => %category%
[12] => %post_tag%
[13] => %post_format%
[14] => %sitemap%
[15] => %sitemap-subtype%
[16] => %sitemap-stylesheet%
[17] => %technique%
[18] => %kd_gallery%
[19] => %kd_artwork%
[20] => %gallery-name%
[21] => %product%
)
[rewritereplace] => Array
(
[0] => ([0-9]{4})
[1] => ([0-9]{1,2})
[2] => ([0-9]{1,2})
[3] => ([0-9]{1,2})
[4] => ([0-9]{1,2})
[5] => ([0-9]{1,2})
[6] => ([^/]+)
[7] => ([0-9]+)
[8] => ([^/]+)
[9] => ([^/]+?)
[10] => (.+)
[11] => (.+?)
[12] => ([^/]+)
[13] => ([^/]+)
[14] => ([^?]+)
[15] => ([^?]+)
[16] => ([^?]+)
[17] => ([^/]+)
[18] => ([^/]+)
[19] => ([^/]+)
[20] => ([^&]+)
[21] => ([^/]+)
)
[queryreplace] => Array
(
[0] => year=
[1] => monthnum=
[2] => day=
[3] => hour=
[4] => minute=
[5] => second=
[6] => name=
[7] => p=
[8] => author_name=
[9] => pagename=
[10] => s=
[11] => category_name=
[12] => tag=
[13] => post_format=
[14] => sitemap=
[15] => sitemap-subtype=
[16] => sitemap-stylesheet=
[17] => technique=
[18] => kd_gallery=
[19] => kd_artwork=
[20] => gallery-name=
[21] => product=
)
[feeds] => Array
(
[0] => feed
[1] => rdf
[2] => rss
[3] => rss2
[4] => atom
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment