Menu
Onyx ThemeOnyx ThemeDocsTimberBlog
PortugueseGitHub
Onyx ThemeOnyx Theme
  • Docs
  • Timber
  • Blog
  • Portuguese
  • GitHub
  • Get started
    • Introduction
    • Installation
    • Gulp and LiveReload
      • Setup
      • Javascripts
      • Styles
  • Configurations
    • App
    • Assets
    • Hooks
    • Images
    • Email
    • Sidebars
    • Theme Features
    • Post Types
    • Taxonomies
  • Guides
    • Controllers
    • Rest API Controllers
    • Templates
    • Helpers
    • Routes
  • References
    • Boot
    • Columns
    • Controller
    • Cpt
    • Setup
    • Sidebar
    • Taxonomy
    • Filters\Actions

Routes

The Onyx theme does not manage routes other than Controllers and Rest API Endpoints.

If you need to create custom routes for your theme or application, consider using one of the WordPress functions and filters:

  • add_rewrite_rule()
  • add_rewrite_tag()
  • generate_rewrite_rules
  • rewrite_rules_array
  • template_include
  • template_redirect
  • parse_request
  • request

You can also use some of the solutions below:

  • Upstatement/routes
  • Rareloop/router
  • Brain-WP/Cortex
Edit this page
Previous
« Helper Methods
Next
\Onyx\Boot »

Docs

  • Instalation
  • Configuration

Community

  • Stack Overflow
  • Twitter

Mais

  • Blog
  • GitHub
Copyright © 2021 Onyx Theme, Inc. Built with Docusaurus.