內容簡介
總結:Vectoron提供三大主要功能,包括REST API端點、內容短碼和ACF整合。
1. REST API端點:
- 提供安全的REST API端點,適用於外部內容管理,完美整合自動化平台如Superblocks、Zapier或自訂應用程式。
- 可以程式化地建立和更新文章、管理分類、上傳媒體,支援完整認證(Basic Auth或自訂標頭)。
2. 內容短碼:
- [vectoron_article] 短碼提供:自訂HTML內容的自動wpautop停用、內建GA4事件追蹤、FAQ手風琴樣式支援。
3. ACF整合:
- 可自動將文章內容同步至Advanced Custom Fields,支援彈性內容、重複器和群組,並可通過Vectoron API或X-Vectoron-Sync標頭觸發。
4. 頁面構建器整合:
- 與常見WordPress頁面構建器無縫整合,支持Elementor、Beaver Builder、DIVI和WP Bakery,具有可配置同步模式和快取清理功能。
5. SEO外掛整合:
- 與熱門SEO外掛自動同步SEO metadata,支援Yoast SEO、SEOpress和Rank Math等。
問題與答案:
- Vectoron提供了哪些主要功能?
- REST API端點的主要功能有哪些?
- 內容短碼提供了哪些特性?
- ACF整合的作用是什麼?
- Vectoron如何與WordPress頁面構建器整合?
- 如何與SEO外掛進行自動同步?
- Vectoron的API端點使用的命名空間是?
- 支持的三種驗證方法是什麼?
- 在使用原生WordPress REST API時,如何觸發ACF同步?
- Vectoron提供了哪些安全功能?
外掛標籤
開發者團隊
原文外掛簡介
Vectoron provides three main features:
1. REST API Endpoints
Secure REST API endpoints for external content management, perfect for integrating with automation platforms like Superblocks, Zapier, or custom applications.
Create and update posts programmatically
Manage categories
Upload media (file upload, base64, or URL)
Full authentication support (Basic Auth or custom headers)
2. Content Shortcodes
The [vectoron_article] shortcode provides:
Automatic wpautop disabling for custom HTML content
Built-in GA4 event tracking
FAQ accordion styling support
3. ACF Integration
Automatically sync post content to Advanced Custom Fields:
Settings page under Settings > Vectoron
Auto-detect WYSIWYG fields in ACF field groups
Support for Flexible Content, Repeaters, and Groups
ACF sync triggered by Vectoron API or X-Vectoron-Sync header
Works with both custom Vectoron API and native WP REST API
4. Page Builder Integrations
Seamless integration with popular WordPress page builders:
Elementor: Auto-sync content to Elementor’s text-editor widgets
Beaver Builder: Auto-sync content to Beaver Builder’s rich-text modules
DIVI: Auto-sync content to DIVI’s shortcode format (sections, rows, columns, text modules)
WP Bakery: Auto-sync content to WP Bakery’s shortcode format (rows, columns, column_text)
Configurable sync modes: Auto (detect existing builder posts), Always (convert all posts), or Disabled
Cache clearing for immediate visual updates
5. SEO Plugin Integrations
Automatic SEO metadata sync with popular SEO plugins:
Yoast SEO: Sync meta description, SEO title, and focus keyword
SEOpress: Sync meta description, SEO title, and target keyword
Rank Math: Sync meta description, SEO title, and focus keyword
All SEO fields set via API are automatically synced to the active SEO plugin
API Endpoints
All endpoints use the namespace vectoron/v1:
POST /wp-json/vectoron/v1/posts – Create a new post
PUT /wp-json/vectoron/v1/posts/{id} – Update an existing post
POST /wp-json/vectoron/v1/categories – Create a category
POST /wp-json/vectoron/v1/media – Upload media
GET /wp-json/vectoron/v1/status – Health check (no auth required)
Authentication
Three authentication methods are supported:
HTTP Basic Auth – Standard username:password
Authorization Header – Authorization: Basic
Custom Headers – X-WP-Username and X-WP-Password
ACF Sync Header
When using the native WordPress REST API (/wp-json/wp/v2/posts) instead of the Vectoron custom API, you can trigger ACF sync by adding the X-Vectoron-Sync header:
X-Vectoron-Sync: true
This is useful when:
You want to use WordPress’s native post creation/update endpoints
Your integration already uses the WP REST API
You need features only available in the native API
Without this header, native WP REST API requests will NOT trigger ACF sync, ensuring Gutenberg and other WordPress interfaces don’t interfere with ACF content.
Security Features
Rate limiting (60 requests/minute per IP)
Capability-based permission checks
SSRF protection for URL uploads
Input sanitization and validation
Protected meta key filtering
