Linux 软件免费装

WordPress on Routes

开发者 markzero
更新时间 2015年3月2日 00:52
PHP版本: 3.8 及以上
WordPress版本: 4.1.1

标签

query headers routes path custom parameters agent HTTP method custom paths exclude header filter agents

下载

0.3.0 0.1.0 0.2.0

详情介绍:

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:
  1. Add custom routes to your WordPress installation
  2. Set method GET/POST/DELETE etc.
  3. Set body (as text, or template) or action (using add/do_action). If both are defined, action takes precedence over body.
  4. Set header (e.g. 'Content-Type' => 'text/html; charset=UTF-8')
  5. Exclude header (e.g. 'Set-Cookie')
  6. Set parameter like '/my/route/:param1/:param2'
  7. Add agents or filter by agents, using regular expressions
  8. Agent filter for negative logic (e.g. /^((?!Firefox).)$/, which tells "every browser except Firefox")
  9. Include header and footer
For basic and advanced usage examples, take a look at https://github.com/markzero/wp-on-routes.

安装:

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.

更新日志:

0.3.0 0.2.0