定制 whitespace-se/wordpress-plugin-headless-cms 二次开发

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

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

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

GitHub 信息

  • Stars: 1
  • Watchers: 9
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2021-04-14