whitespace-se/wordpress-plugin-headless-cms
最新稳定版本:v1.1.1
Composer 安装命令:
composer require whitespace-se/wordpress-plugin-headless-cms
包简介
Wordpress plugin that turns your site into a headless CMS
README 文档
README
Wordpress plugin that turns your site into a headless CMS.
How to install
If you want to use this plugin as an MU-plugin, first add this to your composer.json:
{
"extra": {
"installer-paths": {
"path/to/your/mu-plugins/{$name}/": [
"whitespace-se/wordpress-plugin-headless-cms"
]
}
}
}
Where path/to/your/mu-plugins is something like wp-content/mu-plugins or
web/app/mu-plugins.
Then get the plugin via composer:
composer require whitespace-se/wordpress-plugin-headless-cms
Features
Notify CI
Define the CI_NOTIFY_URLS constant in you config (e.g. in wp-config.php) if
you need to trigger a build job in your CI tool. Example:
define( "CI_NOTIFY_URLS", "https://ci.example.com/build_hooks/000000000000?cause={DESCRIPTION}", );
The value can be a single URL or multiple URLs either as an array or
comma-separated in a single string. You can also use the
WhitespaceHeadlessCms/ci_notify_urls filter to alter the value.
You can use the {DESCRIPTION} placeholder to log what post caused the build to
be triggered if the CI tool supports that. You will see something like "Post 123
updated in WordPress" in the CI logs.
统计信息
- 总下载量: 4.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2021-04-14