thefold/wordpress-dispatcher
最新稳定版本:2.1
Composer 安装命令:
composer require thefold/wordpress-dispatcher
包简介
Create URL endpoints within WordPress
README 文档
README
Easily add custom URL endpoints in WordPress. Map a url to a function.
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.
Install
Composer
composer require thefold/wordpress-dispatcher
统计信息
- 总下载量: 3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 31
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-29