Title: Headless
Author: EdwardBock
Published: <strong>2022 年 5 月 25 日</strong>
Last modified: 2026 年 3 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/headless/assets/icon-256x256.png?rev=2745133)

# Headless

 作者：[EdwardBock](https://profiles.wordpress.org/edwardbock/)

[下载](https://downloads.wordpress.org/plugin/headless.3.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/headless/#description)
 * [评价](https://cn.wordpress.org/plugins/headless/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/headless/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/headless/#developers)

 [支持](https://wordpress.org/support/plugin/headless/)

## 描述

Adds features to use WordPress as headless CMS

### Arbitrary section

 * BREAKING CHANGE 1.7.0: core/block for block references has changed

## 安装

 1. Upload `headless.zip` to the `/wp-content/plugins/` directory
 2. Extract the Plugin to a `headless` Folder
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

「Headless」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)

「Headless」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/headless/contributors)
为本插件所做的贡献。

[帮助将「Headless」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/headless)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/headless/)，查看[SVN仓库](https://plugins.svn.wordpress.org/headless/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/headless/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/headless/)。

## 更新日志

#### 3.0.2

 * **core-image:** use alt text from block if set (b799413)
 * **core-image:** use block alt if set (e2d0e6c)
 * **core-image:** use image alt text from block props if set in block (0ed3974)

#### 3.0.1

 * **core-image:** use alt text from block if set (b799413)
 * **core-image:** use block alt if set (e2d0e6c)
 * **core-image:** use image alt text from block props if set in block (0ed3974)

#### 2.3.1

 * Fix: Preview links

#### 2.3.0

 * Feature: Revalidate feature can be deactivated via hook
 * Feature: Preview feature can be deactivated via hook
 * Fix Menu Schema
 * Update: NPM Packages

#### 2.2.4

 * Feature: Add filter “headless_rest_response_data”
 * Fix: Gutenberg preview in new tab link

#### 2.2.3

 * Bugfix: fatal error without hl_post_type in rest api

#### 2.2.2

 * Feature: revalidate comments on schedule
 * Bugfix: hl_post_type filter with any now working

#### 2.2.0

 * Feature: Revalidate pending posts via dashboard button
 * Fix: date format on dashboard

#### 2.1.2

 * parallel to npm package update

#### 2.1.0

 * Feature: smaller response sizes with headless_variant=teaser

#### 2.0.0

 * BREAKING CHANGES
 * Moves from @palasthotel/wp-fetch to @palasthotel/wp-rest

#### 1.9.3

 * Bugfix: post preview with wordpress 6.4.x fixed

#### 1.9.2

 * Bugfix: Allow revalidation timestamp to be null

#### 1.9.1

 * Bugfix: Undefined property innerHTML in ImageBockPreparation.php

#### 1.9.0

 * Feature: Add headless_revalidate_permalink_path filter
 * Optimization: Add revalidation state “error”
 * Optimization: Add cli log messages
 * Optimization: Add cron logger support for messages

#### 1.8.0

 * Feature: Dashboard widget
 * Refactor: revalidation hooks and process
 * Optimization: Gutenberg panel
 * Optimization: migration to new revalidation database schema

#### 1.7.5

 * Optimization: Preview links are only changed for headless post types

#### 1.7.4

 * Bugfix: view preview notice fix

#### 1.7.3

 * Bugfix: save post in draft state before open preview tab

#### 1.7.2

 * Added: Filter ‘headless_is_headless_post_type’
 * Fixed some issues with previews

#### 1.7.1

 * Use taxonomy name for headless posts as fallback for rest_base

#### 1.7.0

 * BREAKING CHANGE: core/block for block references has changed
 * Optimization: changed preview url magic to redirect
 * Removed: filter headless_post_link because it is not healthy
 * Removed: filter headless_preview_redirect because it is not in use

#### 1.6.2

 * Add headless_rest_api_prepare_post filter for uniform post responses

#### 1.6.1

 * Optimization: revalidation uses url array
 * Bugfix: Remove domain from page rest api response

#### 1.6.0

 * Feature: Tag Cloud Block extension
 * Feature: User extensions
 * Feature: Term extensions
 * Optimization: stale-while-revalidate cache-control header for headless requests
   to the rest api
 * Optimization: api key restriction

#### 1.5.5

 * Headless settings as rest api

#### 1.5.3

 * Featured media sizes to rest api

#### 1.5.1

 * Optimization: add image sizes

#### 1.5.0

 * Feature: Comment extensions with display_name and nickname
 * Feature: Revalidation via gutenberg button
 * Feature: Revalidation system via schedules

#### 1.4.2

 * add embed block preparations
 * update wp fetch lib

#### 1.4.1

 * renamed attribute for reference block because of react attribute name problems

#### 1.4.0

 * add reference block preparation for content resolution
 * add paragraph block preparation for smaller response size

#### 1.3.0

 * add featured media attributes to posts
 * extend core/image and core/gallery

#### 1.2.1

 * Allow blockName null for freeform blocks

#### 1.2.0

 * Post Meta Query for rest requests

#### 1.1.1

 * Preview feature

#### 1.0.0

 * First release

## 额外信息

 *  版本 **3.0.2**
 *  最后更新：**2 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/headless/) 和 [Russian](https://ru.wordpress.org/plugins/headless/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/headless)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[utils](https://cn.wordpress.org/plugins/tags/utils/)
 *  [高级视图](https://cn.wordpress.org/plugins/headless/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/headless/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/headless/reviews/)

## 贡献者

 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/headless/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://palasthotel.de/)