Skip to content

Instantly share code, notes, and snippets.

View KeithBradley's full-sized avatar

Keith Bradley KeithBradley

View GitHub Profile
@KeithBradley
KeithBradley / customroutes.php
Created September 9, 2020 08:37 — forked from samhernandez/customroutes.php
A simple class to add custom routes to Wordpress.
<?php
/**
* A class to create simple custom routes.
*
* Example usage:
*
* $theme_routes = new CustomRoutes();
* $theme_routes->addRoute(
*