wenprise/wordpress-dispatcher
最新稳定版本:2.2
Composer 安装命令:
composer require wenprise/wordpress-dispatcher
包简介
Create URL endpoints within WordPress
README 文档
README
Easily add custom URL endpoints in WordPress. Map a url to a function.
##Example
use \Wenprise\Dispatcher\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.
##Install
###Composer
composer require wenprise/wordpress-dispatcher
统计信息
- 总下载量: 499
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-17