outlandish / routemaster
A routing plugin for WordPress
Installs: 4 315
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 11
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
Requires
- php: >=5.6
- ext-json: *
Suggests
- outlandish/oowp: To optionally use a post-object-aware version of the router and corresponding views
- v2.x-dev
- v2.4.4
- v2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 1.2.5.x-dev
- 1.2.5
- 1.2.3
- dev-org
- dev-rest-route-get-query
- dev-PROSPECT-526-Support-For-Preview
- dev-PROSPECT-469-Show-Private-Posts-To-Author
- dev-PROSPECT-470-allow-inherit-status-for-preview
- dev-alt-global-post
- dev-json_fix2
- dev-json_fix
- dev-master
- dev-wp-json-fix
- dev-ooviews
- dev-remove-pre-dispatch
This package is auto-updated.
Last update: 2024-10-27 15:33:58 UTC
README
Replaces the built-in WordPress routing logic with one defined by URL patterns.
Installation
- Install and activate plugin
- Create Router subclass that implements abstract
routes
function - add the following to your theme:
$router = MyRouter::getInstance();
$router->setup();
Use with OOWP
To successfully extend OowpRouter
and gain router awareness of post objects,
you should also install OOWP. This is optional if you avoid the
Outlandish\Wordpress\Routemaster\Oowp
namespace.
To install it:
composer require outlandish/oowp
Wordpress.org
Unfortunately for new projects Wordpress are not accepting libraries as plugins which they host. The GitHub Actions support for this is now deleted since we tried and failed to have the project added there.
See this PR if you'd like to refer back to the GitHub Actions setup for Wordpress.org publishing, for another plugin which meets the current guidelines.