[WordPress] 外掛分享: Infospica Headless API

首頁外掛目錄 › Infospica Headless API
全新外掛
安裝啟用
尚無評分
39 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-03-23

內容簡介

Infospica Headless API 將 WordPress 轉換為安全且靈活的無頭內容管理系統,提供自訂的 REST API 命名空間,具備完整的 CRUD 功能,適合各種無頭架構及應用程式。

【主要功能】
• 自訂 API 命名空間及版本控制
• 完整的 CRUD 端點支援
• 支援頁面、文章及自訂文章類型
• 可選的 ACF 欄位支援
• 認證驅動的讀寫存取
• 內建分頁支援

外掛標籤

開發者團隊

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

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

原文外掛簡介

Infospica Headless API transforms WordPress into a secure and flexible headless CMS by providing a custom REST API namespace with full CRUD capabilities.
Instead of modifying the default WordPress REST API, this plugin creates an isolated and configurable API layer designed specifically for secure and scalable headless architectures.
Ideal for

Headless WordPress (Next.js, Nuxt, React, Vue, Angular)
Mobile applications
SaaS platforms
Custom frontend integrations
API-driven architectures

Key Features

Custom API namespace with version control
Full CRUD endpoints (GET, POST, PUT, PATCH, DELETE)
Supports:

Pages
Posts
Custom Post Types

Optional ACF field support (if ACF is active)
Authentication-aware read and write access
Capability-based write protection
Built-in pagination support (?page and ?per_page)
Clean and intuitive admin settings UI
Clean uninstall (removes plugin data and settings)

Security Highlights

All API endpoints require authentication
Write operations require appropriate WordPress capabilities
CSRF protection enforced for cookie-based authentication (nonce validation)
Sensitive user data (such as email addresses) is not exposed
WooCommerce core pages are automatically excluded from API responses

Authentication
All endpoints require authentication.
Supported authentication methods:

WordPress login cookies (browser/admin usage)

Write requests require X-WP-Nonce header or _wpnonce parameter

Application Passwords (recommended for external applications)
Any authentication method that properly sets the current user context

Write operations are additionally restricted by WordPress capabilities (e.g., edit_posts, delete_posts).
Available Endpoints
Base structure:
/wp-json/{namespace}/{version}/

Example:
/wp-json/my-api/v1/

Status
GET /status
Pages
GET /pages
GET /pages/{id}
POST /pages
PUT /pages/{id}
PATCH /pages/{id}
DELETE /pages/{id}
Posts
GET /posts
GET /posts/{id}
POST /posts
PUT /posts/{id}
PATCH /posts/{id}
DELETE /posts/{id}
Custom Post Types
GET /{post-type}
GET /{post-type}/{id}
POST /{post-type}
PUT /{post-type}/{id}
PATCH /{post-type}/{id}
DELETE /{post-type}/{id}
Pagination
All list endpoints support:
?page=1
&per_page=10 (maximum 50)

Example:
/wp-json/my-api/v1/posts?page=2&per_page=5

License

This plugin is licensed under GPLv2 or later.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon