sanitize_text_field($pushover_token), 'user' => sanitize_text_field($pushover_user), 'title' => sanitize_text_field($atts['subject']), 'message' => wp_kses_post($atts['message']), ]; // Send the message to Pushover $response = wp_remote_post('https://api.pushover.net/1/messages.json', [ 'body' => $message, ]); if (is_wp_error($response)) { // Handle error if needed error_log('Pushover notification failed: ' . $response->get_error_message()); } // Return false to prevent wp_mail from sending the email return false; }