
內容簡介
Init Pulse For Discord 是一款自動將 WordPress 文章發布或更新通知發送至 Discord 頻道的外掛,適合用於部落格、社群公告及內部編輯工作流程,簡化了設定過程並提升了通知效率。
【主要功能】
• 自動發送文章發布通知
• 支援自定義文章類型
• 角色標記基於分類與標籤
• 支援豐富的 Discord 嵌入格式
• 測試訊息按鈕以驗證 webhook
• 交付日誌追蹤通知狀態
外掛標籤
開發者團隊
② 後台搜尋「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 content is published
Optional notifications when content is updated
Custom Post Type support — choose exactly which post types (posts, pages, products, or any custom type) should trigger a notification
Role tagging based on Categories & Tags
→ When a post is in that taxonomy, that role is mentioned
Rich Discord embeds — title, description, accent color, footer, and timestamp (with a plain-text fallback mode)
Send Test Message button on the settings screen — verify your webhook without publishing a post
Delivery Log — a rolling snapshot of the most recent deliveries (success/error) for troubleshooting, stored lightly in wp_options with autoload = no
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
{author} — post author display name
{categories} — comma-separated category names
{tags} — comma-separated tag names
{post_type} — post type label
{date} — published date (site format)
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
Post Types
Which post types trigger a notification
Webhook URL
Where notifications are sent (with a Send Test Message button)
Username
Display name of your bot
Avatar URL
Custom bot avatar (optional)
Include Featured Image
Adds featured image as embed
Use Rich Embed
Toggle formatted embed vs. plain-text message
Embed Color
Accent color for the embed sidebar
Timeout / Retries
Reliability controls
Message Template
Markdown-ready content, used as the embed description or full message
The settings screen also shows a Delivery Log with the outcome of your most recent notifications.
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.
