diff --git a/alerts/class-alert-type-slack.php b/alerts/class-alert-type-slack.php index 1beff79d0..b6ba8f10b 100644 --- a/alerts/class-alert-type-slack.php +++ b/alerts/class-alert-type-slack.php @@ -171,7 +171,7 @@ public function alert( $record_id, $recordarr, $alert ) { $data['icon_url'] = $options['icon']; } } - wp_remote_post( + wp_safe_remote_post( $options['webhook'], array( 'body' => wp_json_encode( $data ),