Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 527 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 527 Bytes

How to use WordPress Rewrite Rules

Create a custom route to display a Dashboard page

This repository is a basic WordPress plugin created to illustrate a blog post about Rewrite Rules in WordPress.

Its main function is to:

  • register a new /dashboard/<page> route to create a user Dashboard page,
  • load a new PHP template file to display the new Dashboard page content,
  • redirect non logged-in users when accessing this Dashboard page.

Read the blog post →