Replies: 1 comment
-
I read the RFC and it looks great 🚀 🚀 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Headless WordPress Webhooks RFC
Title: Webhooks for Headless WordPress
Author: Theo Despoudis
Status: Draft
Created: April 29, 2025
Last Updated: April 29, 2025
Introduction
This RFC proposes a standardized approach to implementing webhooks in WordPress, specifically designed to enhance headless WordPress architectures.
Problem Statement
Headless WordPress implementations currently lack a standardized, core-supported webhook system. This results in:
Goals
This RFC aims to:
Non-Goals
This RFC does not attempt to:
Proposed Solution
Core Components
Webhook Registration
Webhooks should be registrable via:
Management Interface
The admin UI should allow:
Standard Events
The following core WordPress events should trigger webhooks, building on the established hooks found in the Atlas Webhooks implementation:
Content Events
wp_insert_post
post_updated
deleted_post
trashed_post
draft_to_publish
publish_post
comment_post
edit_comment
deleted_comment
trashed_comment
add_attachment
edited_terms
User Events
user_register
profile_update
delete_user
wp_login
System Events
activated_plugin
deactivated_plugin
switch_theme
update_option
Payload Structure
All webhook payloads should follow a consistent structure:
Extensibility
The webhook system should be extensible by:
Allowing plugins to register custom events
Providing filters to modify webhook payloads
Supporting custom authentication mechanisms
Enabling webhook middleware for transformations
Next Steps
After community feedback on this RFC:
Create a proof-of-concept implementation
Document the API for developers
Build example integrations with popular frontend frameworks (Next.js, Gatsby, Nuxt)
Reference Abstractions
Webhook Registration API
Event Dispatcher
Webhook Delivery System
Scheduler Abstraction
Beta Was this translation helpful? Give feedback.
All reactions