定制 thefold/wordpress-dispatcher 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 28
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-29