
內容簡介
### 總結:
Init Pulse For Discord是一個WordPress外掛程式,可在文章發佈或更新時自動向Discord頻道發送通知。這個外掛程式是Init Plugin Suite套件的一部分,提供最小化、快速和開發者專注的WordPress工具集。
### 問題與答案:
1. Init Pulse For Discord有哪些使用情境?
- 可用於部落格/社區公告
- 適合內部編輯工作流程
- 適用於Discord受眾
2. 使用Init Pulse For Discord的設定流程是怎樣的?
- 貼上Webhook URL
- (選擇性) 在分類或標籤中配置Discord角色ID
- 完成 - 您的伺服器將即時接收更新
3. 這個外掛程式具有哪些特點?
- 自動發送文章發佈通知
- 可選擇性發送文章更新通知
- 基於分類和標籤的角色標記
- 可自訂訊息模板和佔位符
- 可選擇性特色圖像嵌入
- 重試邏輯和超時控制
- 乾淨、精簡的程式碼庫
4. 如何設定角色ID?
- 在「文章 → 分類 → 編輯」中配置
- 在「文章 → 標籤 → 編輯」中配置
5. 這個外掛程式的授權是什麼?
- 本外掛程式基於GPLv2或更高版本許可
- 您可以在相同許可下自由使用、修改和分發
外掛標籤
開發者團隊
② 後台搜尋「Init Pulse For Discord – Webhooks, Roles, Instant」→ 直接安裝(推薦)
原文外掛簡介
Init Pulse For Discord sends automatic notifications to your Discord channel whenever a post is published or updated.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-pulse-for-discord
Perfect for:
Blog / community announcements
Internal editorial workflow
Discord-driven audiences
Straightforward configuration:
Paste your webhook URL
(Optional) Configure Discord role IDs inside Categories or Tags
Done — your server receives updates instantly
Clean, minimal, and built for performance — no bloat, no external SDKs.
Key design goals:
Minimal setup (Webhook + 1 settings page)
No database clutter
No JS/CSS overhead on frontend
Role-aware mentions through taxonomies
Features
Auto-send notifications when posts are published
Optional notifications when posts are updated
Role tagging based on Categories & Tags
→ When a post is in that taxonomy, that role is mentioned
Custom message template with placeholders:
{title} — post title
{title_url} — markdown title linking to URL
{url} — post URL
{excerpt} — trimmed excerpt
{site_name} — your site’s name
Optional featured image embed
Retry logic & timeout controls
No action removals — plays well with all other plugins
Compact, modern codebase
Usage
Navigate to:
Settings → Init Pulse For Discord
Available fields:
Field
Purpose
Webhook URL
Where notifications are sent
Username
Display name of your bot
Avatar URL
Custom bot avatar (optional)
Include Featured Image
Adds featured image as embed
Timeout / Retries
Reliability controls
Message Template
Markdown-ready content
Role IDs can be configured in:
Posts → Categories → Edit
Posts → Tags → Edit
Example mention result:
<@&123456789012345678> New post published!
Filters for Developers
init_plugin_suite_pulse_for_discord_payload
Modify the final webhook payload before sending.
Params: array $payload, int $post_id, string $context
Example:
add_filter(‘init_plugin_suite_pulse_for_discord_payload’, function($payload){
$payload[‘content’] .= “\nCustom footer”;
return $payload;
});
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.
