Skip to content

[Bug]: Webhooks plugin - Delete Webhook not working as expected #274

@theodesp

Description

@theodesp

What did you do?

Tried to delete webhooks using both the bulk delete action from the webhooks list table and the quick delete link for individual webhooks in the admin UI.

What did you expect to happen?

Selected webhooks should be deleted successfully without errors or warnings, and the admin UI should redirect back to the list page with a confirmation message.

What actually happened?

When deleting webhooks via bulk or quick delete, I encountered PHP warnings:

Warning: Cannot modify header information - headers already sent by (output started at .../wp-includes/script-loader.php:2408) in .../pluggable.php on line 1450

The deletion process partially completes but triggers these warnings, and sometimes the redirect does not work properly.

Please provide a minimal reproduction example

  • Use the WPGraphQL Webhooks plugin admin interface.
  • Select one or more webhooks in the list and choose the "Delete" bulk action, then submit.
  • Observe the PHP warnings about headers already sent and the redirect behavior.

Another issue

  • Use the WPGraphQL Webhooks plugin admin interface.
  • Click the "Delete" quick action link on a single webhook row.
  • Observe the nonnce verification failure

Additional context (Optional)

No response

Toolkit Version

main

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

Projects

Status

✅ Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions