class Pretty_RoutesRegisters rewrite rules that map onto the forums page and query vars.
class final
- Full name
Kernowdev\ClanbiteForums\Routing\Pretty_Routes
Methods
add_rules()Add rewrite rules for the router page path.fallback_parse_forums_path()When rewrite rules are missing (nginx, stale rules), map REQUEST_URI to page_id + forums query vars.is_pretty_enabled()Whether path-style URLs are active (router URL resolves to a page).maybe_flush_on_settings_update()parse_router_segments_from_request()Parse forum / topic / reply segments from the current request path when it matches the router base.register()Hook into WordPress.router_page_id()Page ID for the configured router base URL.router_page_path_relative_to_wp()Path segment(s) for the router page, relative to the WordPress site path (no leading/trailing slashes).
Defined in inc/Routing/Pretty_Routes.php