Title: VerCheck API
Author: Roland Bende
Published: <strong>2025 年 6 月 7 日</strong>
Last modified: 2026 年 3 月 24 日

---

搜索插件

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

# VerCheck API

 作者：[Roland Bende](https://profiles.wordpress.org/rbende/)

[下载](https://downloads.wordpress.org/plugin/vercheck-api.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/vercheck-api/#description)
 * [评价](https://cn.wordpress.org/plugins/vercheck-api/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/vercheck-api/#developers)

 [支持](https://wordpress.org/support/plugin/vercheck-api/)

## 描述

This plugin adds a custom REST API endpoint that returns information about the current
versions of the WordPress core, active themes, and active plugins.

Useful for remote WordPress site version monitoring & logging, CI/CD checks, and
automated update workflows.

Both endpoints require authentication via a Bearer token.

**Endpoint 1: Status** — outdated items only

 * **HTTP method:** `GET`
 * **API endpoint:** `/wp-json/vercheck-api/v1/status`

Returns only items that have available updates:
 – WordPress core update status.–
A list of plugins with available updates. – A list of themes with available updates.

**Endpoint 2: Audit** — full inventory

 * **HTTP method:** `GET`
 * **API endpoint:** `/wp-json/vercheck-api/v1/audit`

Returns a complete inventory of everything installed:
 – WordPress core version 
info. – All installed themes (active and inactive) with version and update info.–
All installed plugins (active and inactive) with version and update info.

**Example response — /v1/status:**

    ```
      {
        "core": {
          "current_version": "6.4.3",
          "new_version": "6.5",
          "is_outdated": true
        },
        "outdated_themes": [],
        "outdated_plugins": [
          {
            "name": "Example Plugin",
            "current_version": "1.2.0",
            "new_version": "1.3.0"
          }
        ]
      }
    ```

**Example response — /v1/audit:**

    ```
      {
        "core": {
          "current_version": "6.4.3",
          "new_version": "6.5",
          "is_outdated": true
        },
        "themes": [
          {
            "name": "Twenty Twenty-Four",
            "slug": "twentytwentyfour",
            "current_version": "1.3",
            "new_version": null,
            "is_outdated": false,
            "is_active": true
          }
        ],
        "plugins": [
          {
            "name": "Example Plugin",
            "slug": "example-plugin/example-plugin.php",
            "current_version": "1.2.0",
            "new_version": "1.3.0",
            "is_outdated": true,
            "is_active": true
          }
        ]
      }
    ```

**Additional info:**
 The unique request ID for each API call is returned in the
response header:

    ```
    X-Request-ID: {{unique-request-id}}
    ```

## 屏幕截图

[⌊Admin settings⌉⌊Admin settings⌉[

Admin settings

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Roland Bende ](https://profiles.wordpress.org/rbende/)
 *   [ Roland Bende ](https://profiles.wordpress.org/rolandbende/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.0

 * New: Added `/v1/audit` endpoint — full inventory of all installed themes and 
   plugins with version and update info
 * Improvement: Moved Bearer token authentication to `permission_callback` (WordPress
   REST API best practice)

#### 1.0.3

 * Bugfix: Response themes & plugin order

#### 1.0.2

 * Bugfix: Removed unnecessary fnc. call (loadtextdomain)

#### 1.0.1

 * PHPCS fixes

#### 1.0.0

 * Initial release. REST API endpoint and admin token settings.

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/vercheck-api/)
 * 标签
 * [healthcheck](https://cn.wordpress.org/plugins/tags/healthcheck/)
 *  [高级视图](https://cn.wordpress.org/plugins/vercheck-api/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Roland Bende ](https://profiles.wordpress.org/rbende/)
 *   [ Roland Bende ](https://profiles.wordpress.org/rolandbende/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://rolandbende.com/)