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_contentwp_discord_post_post_embedwp_discord_post_embed_image_sizewp_discord_post_woocommerce_order_contentwp_discord_post_allowed_order_statuseswp_discord_post_product_embedwp_discord_post_order_embedwp_discord_post_{context}_webhook_urlwp_discord_post_webhook_urlwp_discord_post_request_body_argswp_discord_post_request_argswp_discord_post_process_old_postswp_discord_post_is_new_postwp_discord_post_meme_tagwp_discord_post_meme_ratingwp_discord_post_embed_enabled
Actions
wp_discord_post_initwp_discord_post_before_requestwp_discord_post_after_request
Roadmap
- Option to mention
@everyoneon 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






