[WordPress] 外掛分享: VerCheck API

首頁外掛目錄 › VerCheck API
10+
安裝啟用
尚無評分
39 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.4+ v1.1.0 上架:2025-06-06

內容簡介

VerCheck API 外掛提供一個自訂的 REST API 端點,用於檢查 WordPress 核心、佈景主題和外掛的當前版本資訊,適合進行遠端監控、CI/CD 檢查及自動更新工作流程。

【主要功能】
• 提供過時項目的狀態檢查
• 完整的安裝項目清單
• 需要 Bearer token 認證

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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}}

延伸相關外掛

文章
Filter
Apply Filters
Mastodon