
內容簡介
Static JSON Export with CORS 是一個輕量級且安全的 WordPress 外掛,旨在將已發佈的文章、頁面或自訂文章類型匯出為高度優化的靜態 JSON 檔案。當內容變更時,自動生成資料並透過 WordPress REST API 端點提供。
【主要功能】
• 支援 Headless CMS:匯出輕量級文章索引及分頁檔案
• REST API 端點:透過 GET 提供靜態 JSON 資料
• 精細的 CORS 管理:可在控制台設定允許的網域
• 單一 JSON 資料:為主要文章類型創建優化 JSON 資料
• 美觀的 JSON 輸出:易於除錯的乾淨 JSON 格式
• 自訂欄位映射:直接在輸出中包含分類術語或自訂元欄位
外掛標籤
開發者團隊
② 後台搜尋「Static JSON Export with CORS」→ 直接安裝(推薦)
原文外掛簡介
Static JSON Export with CORS is a lightweight, secure WordPress plugin designed to export your published posts, pages, or custom post types into highly-optimized static JSON files.
Feeds are generated automatically when content changes and served cleanly through a WordPress REST API endpoint (GET /wp-json/sjec/v1/feed?name=YOUR_FEED_NAME) with a customizable CORS origins whitelist.
Key Features
Headless CMS Support: Export a lightweight post index, chunked paginated page files, and detailed individual post files under a subfolder.
REST API Endpoints: Serve generated static JSON feeds via GET /wp-json/sjec/v1/feed?name=YOUR_FEED_NAME and individual posts via GET /wp-json/sjec/v1/post?feed=FEED&slug=SLUG with full CORS support.
Granular CORS Management: Enter multiple allowed domains (Origins) in a whitelist via the admin panel.
Single JSON Feed: Create a highly optimized JSON feed for your primary post type.
Pretty-Printed JSON: Clean and readable JSON outputs for easy debugging.
Custom Field Mapping: Include taxonomy terms or custom meta fields directly in the output.
Flexible Querying: Select targeted post types, filter by a single taxonomy, adjust output limits, and sort chronologically.
Value-Added Dashboard: Monitor folder write privileges, payload sizes, item counts, and preview raw JSON output (index, page 1, and individual posts).
GPLv2 & WordPress.org Guidelines Compliant: Fully sanitized inputs, nonce validations, and strict path traversal protection.
PRO Features Available
Unlock even more capabilities:
* Multiple JSON Feeds: Manage separate JSON endpoints for multiple post types.
* Payload Minification: Shrink JSON payload sizes for lightning fast API responses.
* Advanced Taxonomy Filtering: Use AND/OR logic to combine multiple taxonomy constraints.
* Sized Featured Images: Export structured arrays containing multiple sizes (thumbnail, medium, large, full) for featured images (FREE version supports thumbnail URL only).
* Standalone High-Speed API Endpoint: Serve static JSON directly via api.php bypassing the WordPress core bootstrap entirely for sub-millisecond response times under heavy traffic.
* Webhook Integration: Automatically notify external services or trigger rebuilds whenever post data is updated.
