From 39e71fde1c21733cf6ac3257113aae5107cdf48b Mon Sep 17 00:00:00 2001 From: Hanif Norman Date: Thu, 27 Jun 2024 15:06:53 +0800 Subject: [PATCH] Remove excess filters --- modules/notifications/notifications.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/notifications/notifications.php b/modules/notifications/notifications.php index ff8cc13b..a3a6142c 100644 --- a/modules/notifications/notifications.php +++ b/modules/notifications/notifications.php @@ -878,17 +878,11 @@ public function send_email( $action, $post, $subject, $message, $message_headers public function send_to_webhook( $message, $action, $user, $post ) { $webhook_url = $this->module->options->webhook_url; - // apply filters to the URL - $webhook_url = apply_filters( 'ef_notification_send_to_webhook_url', $webhook_url, $action, $user, $post ); - // Bail if the webhook URL is not set if ( empty( $webhook_url ) ) { return; } - // apply filters to the message - $message = apply_filters( 'ef_notification_send_to_webhook_message', $message, $action, $user, $post ); - // Set up the payload $payload = [ 'text' => $message,