-
Notifications
You must be signed in to change notification settings - Fork 2
feat: webhooks admin UI #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
ℹ️ Download the hwp-previews plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
ℹ️ Download the hwp-previews plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
ℹ️ Download the hwp-previews plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
/** | ||
* Get allowed HTTP methods for webhooks. | ||
* | ||
* @return array<string, string> Array of method values and labels. | ||
*/ | ||
public function get_allowed_methods(): array { | ||
return apply_filters( | ||
'graphql_webhooks_allowed_methods', | ||
array( | ||
'POST' => __( 'POST', 'wp-graphql-headless-webhooks' ), | ||
'GET' => __( 'GET', 'wp-graphql-headless-webhooks' ), | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file had a lot of linting fixes, however this is the main bit that was added.
'show_ui' => false, | ||
'show_in_menu' => false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are surfacing the custom post type within settings -> webhooks, so there is no need to show the default WordPress post type UI.
Description
Related Issue
Type of Change
How Has This Been Tested?
pnpm dev wp-graphql-headless-webhooks
Screenshots
Checklist