feat: Add UI to webhooks plugin#262
Merged
josephfusco merged 4 commits intoJun 18, 2025
Merged
Conversation
|
ℹ️ Download the latest wp-graphql-headless-webhooks plugin zip from this PR |
This was referenced Jun 17, 2025
Closed
colinmurphy
approved these changes
Jun 17, 2025
theodesp
approved these changes
Jun 18, 2025
…list.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
…er.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a complete WordPress admin interface for managing webhooks, including a test REST endpoint, updated repository methods using array parameters, and an enhanced admin UI with associated JavaScript and CSS assets.
- Implements a REST endpoint for testing webhooks with detailed logging and error handling.
- Updates repository API methods to accept data arrays and support configurable HTTP methods.
- Introduces new admin views, a custom list table, and improved AJAX interactions for managing and testing webhooks.
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Rest/WebhookTestEndpoint.php | Adds a REST endpoint for testing webhooks with structured logging and error handling. |
| Repository/WebhookRepository.php | Updates methods to receive webhook data as an array and allows filtering of HTTP methods. |
| Repository/Interfaces/WebhookRepositoryInterface.php | Aligns interface docblocks and methods with the updated repository API. |
| Plugin.php | Initializes the admin UI and REST endpoints conditionally based on the admin context. |
| Handlers/WebhookHandler.php | Enhances webhook dispatch with configurable timeout, SSL verification, and detailed logging. |
| Events/WebhookEventManager.php | Registers a test webhook event handler to trigger blocking test requests for debugging purposes. |
| Admin/views/*.php & partials | Introduces new admin views and partials for listing, creating, and editing webhook configurations. |
| Admin/WebhooksListTable.php | Implements a custom WP_List_Table for displaying and managing webhooks in the admin area. |
| assets/js/admin.js | Provides AJAX functionality and UI interactions for managing headers and testing webhooks. |
| assets/css/admin.css | Adds custom styles to support the updated admin UI for webhook management. |
| examples/next/webhooks-isr/.wp-env.json | Updates local environment configuration to PHP 8.0 and adds an additional WPGraphQL plugin. |
b1548b1
into
feat-webhooks-smart-cache-integration
2 of 3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds complete WordPress admin interface for webhook management.
Settings: WPGraphQL → Webhooks