Linux 软件免费装

Vanilla Bean Slack Hooker

开发者 vsmash
更新时间 2025年10月3日 10:17
捐献地址: 去捐款
PHP版本: 5.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

alerts message api notifications automation slack webhook discord mattermost

下载

3.21 3.22 5.2.22 5.3.1 5.1.3 5.0.0 2.55 2.60 3.00 3.04 4.0.0 4.0.2 4.0.3 4.0.4 2.62 3.03 3.02 3.10 5.1.1 5.1.2 3.01 3.05 3.30 5.1.0 5.1.4 5.1.7 5.2.2 5.1.6 5.2.4 5.2.5 5.2.6 5.2.7 5.2.9 4.0.1 5.1.5 4.0.5 5.2.13 5.2.14 5.2.16 5.3.0 5.4.6 5.4.7 5.4.8 5.4.9 5.5.0 5.5.3

详情介绍:

Automated notifications from your WordPress site to your Slack / Mattermost application channels and webhooks. There is no limit to the ways you may integrate this plugin. It supports all other Vanilla Bean plugins and is available for under-the-hood use as well as shortcode access. Key Features Shortcode Examples [slackhooker text="Here is a message from my WordPress site"] or [slackhooker text="Here is a message" channel="general" username="My WordPress"] or [slackhooker text="Here is a message" channel="https://myorg.slack.com/services/xxoxlsodsfsfsdfds#channelname" username="My WordPress"] Messages are queued last in the PHP process to ensure your other page processing is not interrupted, but you can override: [slackhooker text="Here is a message from my WordPress." sendnow="true"] Multiple or custom webhooks supported: [slackhooker text="Here is a message to multiple webhooks" alsoto="https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcdefghij,https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcxxxxxxx"] Programmatic Examples Simple text messages: if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification'); } if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification','mychannel','Username',':specific_icon:'); } if(function_exists('\VanillaBeans\SlackHooker\vbean_slacknotify')){ \VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'Here is my notification','icon'=>':open_mouth:')); } Formatted data messages (NEW in 5.5.2): if(function_exists('\VanillaBeans\SlackHooker\vbean_send_data')){ $data = array( 'User ID' => '12345', 'Email' => 'user@example.com', 'Status' => 'Active', 'Last Login' => '2025-10-03 14:30:00' ); \VanillaBeans\SlackHooker\vbean_send_data('User Registration', $data); } Custom formatted messages with options: `if(function_exists('\VanillaBeans\SlackHooker\vbean_send_data')){ $data = array( 'Order ID' => '#WC-12345', 'Amount' => '$299.99', 'Customer' => 'John Doe', 'Payment Method' => 'Credit Card' ); $options = array( 'color' => '#00ff00', 'pretext' => 'New WooCommerce Sale!', 'text' => 'Payment processed successfully' ); \VanillaBeans\SlackHooker\vbean_send_data('E-commerce Sale', $data, $options); }` Building custom attachment messages: `if(function_exists('\VanillaBeans\SlackHooker\vbean_build_data_message')){ $message = \VanillaBeans\SlackHooker\vbean_build_data_message('System Alert', array( 'Server' => 'web-01.example.com', 'CPU Usage' => '85%', 'Memory' => '3.2GB / 4GB', 'Disk Space' => '75% full' ), array('color' => '#ff9900')); // Send using existing notification system Vanilla_Bean_Slack_Hooker::notification_send($message); }` Parameters There are defaults for all except the message. You can specify: New Data Message Parameters (5.5.2): Use Cases 联系人 We can be found at:

安装:

  1. Via WordPress Admin (Recommended)
  2. Navigate to Plugins > Add New
  3. Search for "Vanilla Bean Slack Hooker"
  4. Click Install Now and then Activate
  5. Manual Installation
  6. Download the plugin ZIP file
  7. Upload to /wp-content/plugins/vanilla-bean-slack-hooker/
  8. Activate through the Plugins menu in WordPress
  9. Configuration
  10. Go to Settings > Slack Hooker in your WordPress admin
  11. Add your webhook URLs (Slack, Mattermost, etc.)
  12. Configure notification preferences
  13. Test your setup with the built-in test message feature

屏幕截图:

  • Admin settings page with webhook configuration
  • Rich formatted data messages with structured fields
  • Plugin management notifications
  • WooCommerce sales notifications

升级注意事项:

5.5.2 Major new feature: Formatted data messages with structured name-value pairs! Enhanced Slack integration with rich attachments. Update recommended for better notification formatting. 5.4.6 Important security update with enhanced input filtering. Update immediately for improved security. 5.2.0 New email notification support allows using email addresses as webhook endpoints. Great for fallback notifications! 5.0.0 Major overhaul with per-endpoint configuration and alert mentions. Previous settings will not be carried forward - reconfiguration required. 4.0.0 Complete rewrite with enhanced post alerts and customizable endpoints. Previous settings will not be carried forward. 3.00 Now supports Mattermost in addition to Slack! Expanded webhook compatibility. 2.44 New plugin management notifications keep you informed of plugin installs, updates, and deletions. 2.0 Added repetition prevention and multiple webhook support for better notification management.

常见问题:

What webhook services are supported?

The plugin supports any webhook-compatible service including Slack, Mattermost, Discord, Microsoft Teams, and custom webhook endpoints. Email addresses can also be used as fallback endpoints.

Are messages sent immediately?

By default, messages are queued and sent via WordPress cron to avoid blocking page loads. You can force immediate sending by setting sendnow="true" in shortcodes or $now=true in programmatic calls.

Can I send to multiple channels at once?

Yes! You can configure multiple default endpoints in the admin settings, or specify additional endpoints using the alsoto parameter in shortcodes and programmatic calls.

What data is included in WooCommerce notifications?

WooCommerce notifications include order ID, customer name, total amount, payment status, and admin links to view the order details.

Is the plugin compatible with multisite?

Yes, the plugin works on WordPress multisite installations. Each site maintains its own webhook configuration and notification settings.

Can I customize the message format?

Absolutely! The new data message functions (5.5.2+) allow you to create rich formatted messages with custom colors, structured data fields, and flexible styling options.

更新日志:

5.5.2 Release Date: October 3, 2025 5.5.0 Release Date: April 21, 2025 5.4.6 Release Date: April 21, 2025 5.3.1 5.2.14 5.2.11 5.2.7 5.2.0 5.1.7 5.1.6 5.1.3 5.1.2 5.1.1 5.1.0 5.0.0 Major overhaul - Previous settings not carried forward 4.0.5 4.0.3 4.0.0 Major overhaul - Previous settings not carried forward 3.30 3.22 3.21 3.10 3.05 3.04 3.03 3.02 3.00 2.60 2.55 2.47 2.46 2.45 2.44 2.20 2.14 2.13 2.12 2.11 2.10 2.0 1.50 1.42 1.41 1.24 1.23 1.22 1.21 1.2 1.1 1.01 1.0