前言介紹
- 這款 WordPress 外掛「WP Discord Post」是 2017-01-28 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 800 個安裝啟用數。
- 上一次更新是 2018-08-22,距離現在已有 2447 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 有 15 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
chat | post | server | discord | publish |
內容簡介
WP Discord Post 是 WordPress 的一個免費外掛程式,使用 Discord 機器人和 Webhook URL,當新文章在您的網誌上發佈時,可以寫入您所選擇的 Discord 伺服器中的特定頻道。
您可以前往「設定 > WP Discord Post」並填寫所有詳細資料進行配置。所有欄位都是必填的,點選欄位說明中的「了解更多」鏈結可瞭解如何取得所需的資料。
與聯絡表單兼容
WP Discord Post 與 Contact Form 7、Jetpack Contact Form 和 Gravity Forms 相容,於每次通過電子郵件發送之前將每個表單的內容發送到您的 Discord。
與 WooCommerce 相容
WP Discord Post 也與 WooCommerce 相容,每當在您的商店創建新訂單或新增產品目錄時,會向 Discord 發送新的訊息。
與任何自訂文章類型相容
WP Discord Post 支援任何文章類型,只需要一點自定義程式碼。如果您想要為您的自訂文章類型發送一條消息,請將以下程式碼添加到您的 functions.php 檔案中 wp-content/themes/your-child-theme-name/:
add_action( 'publish_{post_type}', array( WP_Discord_Post::instance()->post, 'send' ), 10, 2 );
請確保將 {post_type} 替換為您想要使用的文章類型的 slug。例如,如果您註冊了一個名稱為 book 的文章類型,您將使用:
add_action( 'publish_book', array( WP_Discord_Post::instance()->post, 'send' ), 10, 2 );
隱私資訊
此外掛程式會將私人使用者資料發送到 Discord。根據您使用的功能,會發送不同的資料:
文章:作者名稱
聯絡表單:通過表單收集的任何使用者資料
訂單:客戶和訂單詳細資料
一旦發送了資料,它們就在 Discord 的控制下,本外掛程式不能從其伺服器上移除這些資料。請在 https://discordapp.com/privacy 瞭解更多 Discord 的隱私政策。
開發者資源
WP Discord Post 附帶了一些勾子可用於自訂外掛程式的操作方式。以下是這些勾子的列表:
過濾器
wp_discord_post_post_content
wp_discord_post_post_embed
wp_discord_post_embed_image_size
wp_discord_post_woocommerce_order_content
wp_discord_post_allowed_order_statuses
wp_discord_post_product_embed
wp_discord_post_order_embed
wp_discord_post_{context}_webhook_url
wp_discord_post_webhook_url
wp_discord_post_request_body_args
wp_discord_post_request_args
wp_discord_post_process_old_posts
wp_discord_post_is_new_post
wp_discord_post_meme_tag
wp_discord_post_meme_rating
wp_discord_post_embed_enabled
操作
wp_discord_post_init
wp_discord_post_before_request
wp_discord_post_after_request
路線圖
每篇文章單獨提及 @everyone 的選項
文章評論的 Discord 通知
WooCommerce 產品更新時(庫存和銷售更新)的 Discord 通知
Discord 的 WooCommerce 銷售報告
MailCh
原文外掛簡介
WP Discord Post is a free plugin for WordPress that uses a Discord bot and Webhook URL to write in your desired channel in your Discord server whenever a new post is published on your blog.
You can configure it by going to Settings > WP Discord Post and filling in all the details. The fields are all required. Click on the links “Learn more” in the description of the fields to learn how to get the necessary data.
Compatible with contact forms
WP Discord Post is compatible with Contact Form 7, Jetpack Contact Form, and Gravity Forms sending the content of each form to your Discord before it is sent via email as well.
Compatible with WooCommerce
WP Discord Post is also compatible with WooCommerce, sending a new message to Discord every time a new order is created on your shop, or when a new product is added to the catalog.
Compatible with any custom post type
WP Discord Post supports any post type, with a bit of custom code. If you want to send a message for your custom post type add this code to your functions.php file in wp-content/themes/your-child-theme-name/:
add_action( 'publish_{post_type}', array( WP_Discord_Post::instance()->post, 'send' ), 10, 2 );
Make sure to replace {post_type} with the slug of the post type that you want to use, for example if you registered a post type book you would use:
add_action( 'publish_book', array( WP_Discord_Post::instance()->post, 'send' ), 10, 2 );
Privacy Info
This plugin sends private user data to Discord. Different data are sent based on what features you use:
Posts: Author name
Contact Forms: Any user data collected via the form
Orders: Customer and order details
Once the data are sent they are under Discord’s control and the plugin cannot remove them from their servers.
Learn more about Discord’s privacy policy at https://discordapp.com/privacy.
Developers Resources
WP Discord Post comes with some hooks that you can use to customize how the plugin works. Here is a list of them:
Filters
wp_discord_post_post_content
wp_discord_post_post_embed
wp_discord_post_embed_image_size
wp_discord_post_woocommerce_order_content
wp_discord_post_allowed_order_statuses
wp_discord_post_product_embed
wp_discord_post_order_embed
wp_discord_post_{context}_webhook_url
wp_discord_post_webhook_url
wp_discord_post_request_body_args
wp_discord_post_request_args
wp_discord_post_process_old_posts
wp_discord_post_is_new_post
wp_discord_post_meme_tag
wp_discord_post_meme_rating
wp_discord_post_embed_enabled
Actions
wp_discord_post_init
wp_discord_post_before_request
wp_discord_post_after_request
Roadmap
Option to mention @everyone on each post singularly
Discord notification for post comments
Discord notification when updating WooCommerce products (stock and sales updates)
Sales reports for WooCommerce in Discord
Discord notification on newsletter signup for MailChimp (TBC)
Compatibility with Yoast SEO and OpenGraph
Compatibility with WooCommerce Subscriptions
Compatibility with WooCommerce Memberships
More ideas? Tell me in the support forum
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Discord Post」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.0 | 1.1.1 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 2.0.0 | 2.0.1 | 2.0.2 | 2.1.0 | trunk |
延伸相關外掛(你可能也想知道)
PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
Optimize Database after Deleting Revisions 》這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。, 主要功能, , 刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,...。
Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
Revision Control 》**本外掛不提供支援。仍可使用,但請勿期待得到支援要求的回應或對「這無法運作」進行回應。**, Revision Control 是 WordPress 的一款外掛,可以讓使用者更...。
Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
Bulk Delete 》Bulk Delete 是一個 WordPress 外掛,可以根據不同的條件和過濾器批次刪除文章、頁面、附件、使用者和元資料。此外掛支援以下條件和過濾器:, , 刪除文章, , ...。
WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
Themify Portfolio Post 》Themify Portfolio Posts 是一個簡單的外掛,允許您展示乾淨版面的專案資訊。簡約而精美,您可以點擊您的圖庫專案的每張圖片,選擇顯示更多細節,例如專案類...。
Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。