Skip to content

Commit ce91587

Browse files
committed
Only use smart cache events by default
1 parent a593781 commit ce91587

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

plugins/wp-graphql-headless-webhooks/src/Repository/WebhookRepository.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,7 @@ class WebhookRepository implements WebhookRepositoryInterface {
2424
* @var array<string, string>
2525
*/
2626
private $default_events = [
27-
'post_published' => 'Post Published',
28-
'post_updated' => 'Post Updated',
29-
'post_deleted' => 'Post Deleted',
30-
'post_meta_change' => 'Post Meta Changed',
31-
'term_created' => 'Term Created',
32-
'term_assigned' => 'Term Assigned to Post',
33-
'term_unassigned' => 'Term Unassigned from Post',
34-
'term_deleted' => 'Term Deleted',
35-
'term_meta_change' => 'Term Meta Changed',
36-
'user_created' => 'User Created',
37-
'user_assigned' => 'User Assigned as Author',
38-
'user_deleted' => 'User Deleted',
39-
'user_reassigned' => 'User Author Reassigned',
40-
'media_uploaded' => 'Media Uploaded',
41-
'media_updated' => 'Media Updated',
42-
'media_deleted' => 'Media Deleted',
43-
'comment_inserted' => 'Comment Inserted',
44-
'comment_status' => 'Comment Status Changed',
45-
// Smart Cache events
27+
// Smart Cache events only by default
4628
'smart_cache_created' => 'Smart Cache - Content Created',
4729
'smart_cache_updated' => 'Smart Cache - Content Updated',
4830
'smart_cache_deleted' => 'Smart Cache - Content Deleted',

0 commit comments

Comments
 (0)