The Rewrite Rules module allows developers to get an overview of all WordPress permalinks rules from the Tools > Rewrite Rules menu, using an enhanced forked of the Monkeyman Rewrite Analyzer plugin.
This fork includes bugfixes and new “Export Rules” and “Flush Permalinks” actions.
Pattern | Matches |
---|---|
Pattern | Matches |
^wp-json/?$ | rest_route: /
|
^wp-json/(.*)? | rest_route: /(.*)?
|
^wp-sitemap\.xml$ | sitemap: index
|
^wp-sitemap\.xsl$ | sitemap-stylesheet: sitemap
|
^wp-sitemap-index\.xsl$ | sitemap-stylesheet: index
|
^wp-sitemap-([a-z]+?)-(\d[a-z_-]+?)-(\d+?)\.xml$ | sitemap: ([a-z]+?) sitemap-subtype: (\d[a-z_-]+?) paged: (\d+?) |
^wp-sitemap-([a-z]+?)-(\d+?)\.xml$ | sitemap: ([a-z]+?) paged: (\d+?) |
./(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$ | category_name: (.+?) feed: (feed|rdf|rss|rss2|atom) |
./(.+?)/(feed|rdf|rss|rss2|atom)/?$ | category_name: (.+?) feed: (feed|rdf|rss|rss2|atom) |
./(.+?)/embed/?$ | category_name: (.+?) embed: true |
./(.+?)/page/?([0-9]{1,})/?$ | category_name: (.+?) paged: ([0-9]{1,}) |
./(.+?)/?$ | category_name: (.+?)
|
tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | tag: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | tag: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
tag/([^/]+)/embed/?$ | tag: ([^/]+) embed: true |
tag/([^/]+)/page/?([0-9]{1,})/?$ | tag: ([^/]+) paged: ([0-9]{1,}) |
tag/([^/]+)/?$ | tag: ([^/]+)
|
type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | post_format: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | post_format: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
type/([^/]+)/embed/?$ | post_format: ([^/]+) embed: true |
type/([^/]+)/page/?([0-9]{1,})/?$ | post_format: ([^/]+) paged: ([0-9]{1,}) |
type/([^/]+)/?$ | post_format: ([^/]+)
|
robots\.txt$ | robots: 1
|
favicon\.ico$ | favicon: 1
|
.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$ | feed: old
|
.*wp-app\.php(/.*)?$ | error: 403
|
.*wp-register.php$ | register: true
|
feed/(feed|rdf|rss|rss2|atom)/?$ | feed: (feed|rdf|rss|rss2|atom)
|
(feed|rdf|rss|rss2|atom)/?$ | feed: (feed|rdf|rss|rss2|atom)
|
embed/?$ | embed: true
|
page/?([0-9]{1,})/?$ | paged: ([0-9]{1,})
|
comments/feed/(feed|rdf|rss|rss2|atom)/?$ | feed: (feed|rdf|rss|rss2|atom) withcomments: 1 |
comments/(feed|rdf|rss|rss2|atom)/?$ | feed: (feed|rdf|rss|rss2|atom) withcomments: 1 |
comments/embed/?$ | embed: true
|
search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ | s: (.+) feed: (feed|rdf|rss|rss2|atom) |
search/(.+)/(feed|rdf|rss|rss2|atom)/?$ | s: (.+) feed: (feed|rdf|rss|rss2|atom) |
search/(.+)/embed/?$ | s: (.+) embed: true |
search/(.+)/page/?([0-9]{1,})/?$ | s: (.+) paged: ([0-9]{1,}) |
search/(.+)/?$ | s: (.+)
|
author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | author_name: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | author_name: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
author/([^/]+)/embed/?$ | author_name: ([^/]+) embed: true |
author/([^/]+)/page/?([0-9]{1,})/?$ | author_name: ([^/]+) paged: ([0-9]{1,}) |
author/([^/]+)/?$ | author_name: ([^/]+)
|
([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) day: ([0-9]{1,2}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) day: ([0-9]{1,2}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/embed/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) day: ([0-9]{1,2}) embed: true |
([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) day: ([0-9]{1,2}) paged: ([0-9]{1,}) |
([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) day: ([0-9]{1,2}) |
([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/([0-9]{1,2})/embed/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) embed: true |
([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) paged: ([0-9]{1,}) |
([0-9]{4})/([0-9]{1,2})/?$ | year: ([0-9]{4}) monthnum: ([0-9]{1,2}) |
([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ | year: ([0-9]{4}) feed: (feed|rdf|rss|rss2|atom) |
([0-9]{4})/embed/?$ | year: ([0-9]{4}) embed: true |
([0-9]{4})/page/?([0-9]{1,})/?$ | year: ([0-9]{4}) paged: ([0-9]{1,}) |
([0-9]{4})/?$ | year: ([0-9]{4})
|
.?.+?/attachment/([^/]+)/?$ | attachment: ([^/]+)
|
.?.+?/attachment/([^/]+)/trackback/?$ | attachment: ([^/]+) tb: 1 |
.?.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
.?.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
.?.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$ | attachment: ([^/]+) cpage: ([0-9]{1,}) |
.?.+?/attachment/([^/]+)/embed/?$ | attachment: ([^/]+) embed: true |
(.?.+?)/embed/?$ | pagename: (.?.+?) embed: true |
(.?.+?)/trackback/?$ | pagename: (.?.+?) tb: 1 |
(.?.+?)/feed/(feed|rdf|rss|rss2|atom)/?$ | pagename: (.?.+?) feed: (feed|rdf|rss|rss2|atom) |
(.?.+?)/(feed|rdf|rss|rss2|atom)/?$ | pagename: (.?.+?) feed: (feed|rdf|rss|rss2|atom) |
(.?.+?)/page/?([0-9]{1,})/?$ | pagename: (.?.+?) paged: ([0-9]{1,}) |
(.?.+?)/comment-page-([0-9]{1,})/?$ | pagename: (.?.+?) cpage: ([0-9]{1,}) |
(.?.+?)?(:/([0-9]+))?/?$ | pagename: (.?.+?)? page: (:/([0-9]+))? |
[^/]+/attachment/([^/]+)/?$ | attachment: ([^/]+)
|
[^/]+/attachment/([^/]+)/trackback/?$ | attachment: ([^/]+) tb: 1 |
[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$ | attachment: ([^/]+) cpage: ([0-9]{1,}) |
[^/]+/attachment/([^/]+)/embed/?$ | attachment: ([^/]+) embed: true |
([^/]+)/embed/?$ | name: ([^/]+) embed: true |
([^/]+)/trackback/?$ | name: ([^/]+) tb: 1 |
([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | name: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | name: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
([^/]+)/page/?([0-9]{1,})/?$ | name: ([^/]+) paged: ([0-9]{1,}) |
([^/]+)/comment-page-([0-9]{1,})/?$ | name: ([^/]+) cpage: ([0-9]{1,}) |
([^/]+)?(:/([0-9]+))?/?$ | name: ([^/]+)? page: (:/([0-9]+))? |
[^/]+/([^/]+)/?$ | attachment: ([^/]+)
|
[^/]+/([^/]+)/trackback/?$ | attachment: ([^/]+) tb: 1 |
[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ | attachment: ([^/]+) feed: (feed|rdf|rss|rss2|atom) |
[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$ | attachment: ([^/]+) cpage: ([0-9]{1,}) |
[^/]+/([^/]+)/embed/?$ | attachment: ([^/]+) embed: true |
ACF Extended use the native ACF setting show_admin
to determine if the module menu should be displayed or not. You can read more about that setting on the ACF article How to hide ACF menu from clients. Usage example:
add_filter('acf/settings/show_admin', '__return_false');
The Rewrite Rules UI module is enabled by default. It can be enabled and disabled in the Settings UIPRO, or with the following code:
add_action('acf/init', 'my_acfe_modules');
function my_acfe_modules(){
// disable rewrite rules
acf_update_setting('acfe/modules/rewrite_rules', false);
}
add_action('acfe/init', 'my_acfe_modules');
function my_acfe_modules(){
// disable rewrite rules
acfe_update_setting('modules/rewrite_rules', false);
}