library wordpress-dispatcher
Create URL endpoints within WordPress
thefold/wordpress-dispatcher
Create URL endpoints within WordPress
- Monday, July 4, 2016
- by timfield
- Repository
- 1 Watchers
- 18 Stars
- 1,564 Installations
- PHP
- 4 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 3 Versions
- 4 % Grown
WordPress Router / Dispatcher
Easily add custom URL endpoints in WordPress. Map a url to a function., (*1)
Example
use \TheFold\WordPress\Router;
Router::routes([
'testing-a-url' => function(){
echo 'Hello Ted';
},
'hello-([a-z]+)' => function($request, $name){
echo "Hello $name";
}
]);
/testing-a-url & /hello-dougle will now be accessable in your WordPress site., (*2)
Install
Composer
composer require thefold/wordpress-dispatcher, (*3)
dev-master
9999999-dev
Create URL endpoints within WordPress
Sources
Download
MIT
The Requires
2.0
2.0.0.0
Create URL endpoints within WordPress
Sources
Download
MIT
The Requires
1.0
1.0.0.0
Create URL endpoints within WordPress
Sources
Download
MIT
The Requires