
內容簡介
OrganicStack Publisher 提供一套完整的 REST API,讓使用者能自動化地在 WordPress 上發佈內容。透過安全的 API 金鑰認證,外部應用程式可以管理文章、媒體、分類、標籤及作者資料,提升內容管理的效率。
【主要功能】
• 完整的 REST API 端點,便於內容管理
• 安全的 API 金鑰認證系統
• 支援單篇或批量發佈文章
• 媒體管理,支援圖片上傳與優化
• 分類與標籤的創建與管理
• 支援自訂文章元資料
外掛標籤
開發者團隊
原文外掛簡介
OrganicStack Publisher provides a comprehensive REST API for automated WordPress content publishing. It enables external applications (including OrganicStack) to publish posts, manage media, handle categories and tags, create authors, and manage content programmatically through a secure API key authentication system.
Key Features
REST API Endpoints – Complete set of REST API endpoints for WordPress content management
API Key Authentication – Secure API key-based authentication instead of WordPress application passwords
Post Publishing – Publish single posts or bulk publish multiple posts at once
Media Management – Upload images via base64 or URL with automatic optimization
Category & Tag Management – Get, create, and manage categories and tags
Author Management – Create authors and manage author profiles with custom avatars
SEO Support – Built-in support for Yoast SEO and RankMath meta fields
Custom Meta Fields – Support for custom post meta fields
CORS Support – Built-in CORS handling for cross-origin requests
Site Information – Get detailed site information including WordPress version, PHP version, and more
Security Features
API key authentication with secure key generation
Input sanitization and validation on all endpoints
Proper permission checks for all operations
Secure file upload handling
Data Integrity (Multi-Tenant) – CRITICAL
Author avatars are time-consuming to create. They MUST NEVER be removed by a plugin update.
This plugin ONLY manages OrganicStack avatars (organicstack_avatar_id, organicstack_created).
We NEVER delete, remove, or modify any author/avatar data from WordPress or other plugins.
Gravatar, Simple Local Avatars, User Avatar, and all other avatar systems are UNTOUCHED.
See AVATAR_POLICY.md – violating this causes hundreds of lost avatars and customer complaints.
API Documentation
Base URL
All endpoints are available at: /wp-json/organicstack-publisher/v1/
Authentication
Include your API key in requests using either:
* Header: X-API-Key: your-api-key
* Body: {"api_key": "your-api-key"}
Available Endpoints
GET /ping – Test basic connectivity (no auth required)
GET /test-connection – Test authenticated connection
POST /auth – Authenticate with API key
POST /publish – Publish a single post
POST /bulk-publish – Publish multiple posts
POST /upload-media – Upload images
GET /categories – Get all categories
GET /tags – Get all tags
GET /authors – Get all authors
POST /create-author – Create a new author
GET /site-info – Get site information
For detailed API documentation, see the admin panel after installation.
Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
MySQL 5.6 or higher
HTTPS recommended for production use
Support
For support and questions:
* Check WordPress error logs for debugging
* Verify plugin settings in the admin panel
* Test API endpoints using curl or Postman
* Ensure WordPress and PHP versions meet requirements
License
This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License or any later version.
