[WordPress] 外掛分享: REST API Only

首頁外掛目錄 › REST API Only
全新外掛
安裝啟用
尚無評分
89 天前
最後更新
問題解決
WordPress 5.0+ v1.0.2 上架:2025-12-15

內容簡介

### 總結:
- 這個外掛會強制所有非管理員、非 AJAX 和非 REST API 要求返回 404 狀態碼。
- 非常適合用於無前端 (headless) WordPress 環境或僅應該公開 API 的網站。

### 問題與答案:
1. 這個外掛對於哪些 WordPress 請求會強制返回 404 狀態碼?
- 非管理員、非 AJAX 和非 REST API 的請求。

2. 這個外掛更適合應用在哪種 WordPress 環境?
- 無前端 (headless) WordPress 環境或僅應該公開 API 的網站。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「REST API Only」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin forces all non-admin, non-AJAX, and non-REST API requests to return a 404 status code.
Ideal for headless WordPress environments or sites that should expose only the API.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon