-
Notifications
You must be signed in to change notification settings - Fork 38
/
readme.txt
37 lines (28 loc) · 1.04 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
=== Routes ===
Contributors: jarednova
Tags: admin, configuration
Requires at least: 4.0
Stable tag: 0.3.1
Tested up to: 4.5
PHP version: 5.3.0 or greater
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Simple ways to add HTTP routes to your WordPress Theme
== Description ==
Simple ways to make admin customizations for WordPress. You know all that brain space you saved for rewrite regex? Now you can simply...
* On [GitHub](https://github.com/upstatement/routes)
### Usage
<code><pre>
/* functions.php */
Routes::map('myfoo/bar', 'my_callback_function');
Routes::map('my-events/:event', function($params) {
$event_slug = $params['event'];
$event = new ECP_Event($event_slug);
Routes::load('single.php', array('event' => $event));
});
</code></pre>
== Installation ==
1. Activate the plugin through the 'Plugins' menu in WordPress
2. Add custom routes in a theme file like functions.php
== Support ==
Please use the [GitHub repo](https://github.com/upstatement/routes/issues?state=open) to file bugs or questions.