Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/epiphyt/product-notifications/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Get notifications about various actions in your shop.
Configuration
You need to create a slack app (from scratch) and enable incoming webhooks in Features > Incoming Webhooks in the app.
Then, save the webhook URL in the constant PRODUCT_NOTIFICATIONS_SLACK_WEBHOOK_URL in your WordPress.
Method 1: Via WP-CLI:
wp config set PRODUCT_NOTIFICATIONS_SLACK_WEBHOOK_URL https://hooks.slack.com/services/T3423KDSH/JFL32K7ODD/flru3h8rrawir4trp
Method 2: Manually in wp-config.php:
\define( 'PRODUCT_NOTIFICATIONS_SLACK_WEBHOOK_URL', 'https://hooks.slack.com/services/T3423KDSH/JFL32K7ODD/flru3h8rrawir4trp' );
Notifications
Currently, only Slack is supported, and only new orders/subscriptions and status changes of orders/subscriptions.