We'll create fresh WordPress site with WP Discord Post installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.
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.
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.
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 );
This plugin sends private user data to Discord. Different data are sent based on what features you use:
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.
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_enabledActions
wp_discord_post_initwp_discord_post_before_requestwp_discord_post_after_request@everyone on each post singularly