Description
WordPress on Routes is a plugin for WordPress, inspired mainly by Ruby micro-frameworks. It adds ability to add custom routes to your WordPress instance. Useful for form submissions, API-like features, etc.
This plugin allows you to:
- Add custom routes to your WordPress installation
- Set method GET/POST/DELETE etc.
- Set body (as text, or template) or action (using add/do_action). If both are defined,
action
takes precedence overbody
. - Set header (e.g. βContent-Typeβ => βtext/html; charset=UTF-8β)
- Exclude header (e.g. βSet-Cookieβ)
- Set parameter like β/my/route/:param1/:param2β
- Add agents or filter by agents, using regular expressions
- Agent filter for negative logic (e.g. /^((?!Firefox).)$/, which tells βevery browser except Firefoxβ)
- Include header and footer
For basic and advanced usage examples, take a look at https://github.com/markzero/wp-on-routes.
Installation
Good old plugin installation applies here too – download it / clone it to plugins/
dir, activate.
If you want to clone it, here is the repository: https://github.com/markzero/wp-on-routes
No UI involved.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“WordPress on Routes” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “WordPress on Routes” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.3.0
- Added predefined path
/posts.json
to get all posts list as application/json response
0.2.0
- Added test environment and some tests for methods, parameters and splats