Hub Webhooks
3 min
Purple Hub
To connect the Hub with webhooks, the "Webhooks" plugin needs to be activated. Afterwards, the settings can be accessed by opening the "Webhooks" menu point on the "All settings" page.
How to use the Hub Webhooks
- Create a webhook in your external service and copy the URL.
- Add the WordPress hook name you want to monitor. Common hooks include:
- save_post - When a post is saved/updated
- publish_post - When a post is published
- draft_to_publish - When a post transitions from draft to published
- purpledshub_scheduled_post_published - When the system publishes a scheduled post
- wp_login - When a user logs in
- delete_post - When a post is deleted permanently
- trashed_post - When a post is moved to the trash
- wp_insert_comment - When a comment is added
- transition_post_status - When post status changes
- wp_after_insert_post - After a post is inserted or updated
- Paste the webhook URL
- Choose whether to execute asynchronously (recommended for performance)
- Test the webhook to ensure it works
- Save your settings
The available hooks are restricted for security reasons
Rate limits
Webhooks that are triggered by a WordPress hook are not rate-limited: every mapped hook sends its webhook each time it fires. If a webhook cannot be sent, it is listed under Execution Logs.
Webhooks that editors start manually from an article are limited to:
- 5 per minute for the same user and article
- 100 per minute for the whole Hub
- 20 per minute from the same IP address
If your workflow writes back to the article that triggered it, this change fires the hook again. Make sure your workflow does not trigger itself in a loop.