plugin-icon

WP Discord Post

WP Discord Post использует бота Discord и Webhook, чтобы писать в канал на сервере Discord, когда в блоге публикуются новые статьи.
Рейтинги
4.1
Последние изменения
August 22, 2018
Версия
2.1.0
Активные установки
900

WP Discord Post — это бесплатный плагин для WordPress, использующий бота Discord и Webhook, для того чтобы отправлять в нужный канал вашего сервера Discord сообщения, когда новые статьи публикуются в вашем блоге.

Настроить плагин можно, перейдя в Настройки > Общие настройки > WP Discord Post и заполнив все требуемые поля. Обратите внимание на ссылки «Узнать больше» у описания некоторых полей, перейдя по ним вы узнаете как получить требуемые данные.

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
Активные установки
900
Проверено на
4.9.26
Этот плагин можно скачать и использовать при автономной установке WordPress.