rogue-one / workhorse
1.2.5
2021-11-09 08:08 UTC
Requires
- composer/composer: ^2.1.5
- illuminate/config: ^8.55
- illuminate/container: ^8.55
- illuminate/events: ^8.55
- illuminate/filesystem: ^8.55
- illuminate/log: ^8.55
- illuminate/support: ^8.55
- johnbillion/extended-cpts: ^4.5
- samrap/acf-fluent: ^0.4.0
- stoutlogic/acf-builder: ^1.11
README
注意: 此软件包依赖于WordPress的polylang插件来提供多语言支持。
用法
实现插件目录结构。
将 example-plugin 目录复制到 mu-plugins 或 plugins 目录。
根据需要,对模板进行必要的自定义。
在插件根文件中实现(例如:plugin-root.php
)。
use Workhorse\Plugin\Bootloader; if (!defined('ABSPATH')) { exit; } Bootloader::register(__FILE__, \ExamplePlugin\ExamplePlugin::PLUGIN_NAME);
待办事项
- 实现生成插件模板的命令。