psaikali / 25268-rewrite-rules

Simple WordPress plugin to learn how to use WordPress rewrite rules. Create a simple /dashboard/ route and display tabs with content.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 →

About

Simple WordPress plugin to learn how to use WordPress rewrite rules. Create a simple /dashboard/ route and display tabs with content.


Languages

Language:PHP 100.0%