=== Signalgrid ===
Contributors: signalgrid
Tags: push notifications, signalgrid, notifications, alerting
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official Signalgrid plugin for WordPress. Connect your WordPress site to Signalgrid to trigger alerts directly to your mobile devices.

== Description ==

Signalgrid is a dedicated alerting bridge for WordPress developers. This plugin provides a direct pipeline between your WordPress site and the Signalgrid push notification service, stripping away unnecessary complexity to focus on pure utility.

It is designed to stay out of your way, providing a clean, globally accessible PHP function that allows you to trigger instant mobile alerts from anywhere within your theme or custom plugin logic.

=== Core Features ===

* **Developer-Focused PHP Integration:** Adds a simple, global function to your WordPress site. Trigger a push notification with a single line of code inside your hooks, custom functions, or system logic.
* **Instant Mobile Alerts:** Delivers high-priority notifications to iOS and Android devices, ensuring critical site events—like security triggers or system failures—are seen immediately.
* **Top-Level Sidebar Menu:** Access your API configuration and documentation directly from the primary WordPress admin sidebar.

=== Usage Example ===

To send a push notification, simply call the function anywhere in your code:

    <?php
        $channel = "df1741aabc93ce5fb7449435c266a8a3c5763b29";
        $title = "This is the title";
        $body = "This is the body";
        $severity = "INFO";
        $critical = false;
        
        if ( signalgrid_notify($channel, $title, $body, $severity, $critical) ) {
            // Notification sent successfully
        } else {
            // Error handling logic here
        }
    ?>

== Installation ==

1. Upload the `signalgrid` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Locate the **Signalgrid** menu item in your WordPress sidebar.
4. Enter your Client Key in the settings field to authenticate with the Signalgrid service.
5. Use the `signalgrid_notify` function to alert your devices of important events.

== Changelog ==

= 1.4 =
* Initial release with support for global PHP alerting function.
* Added top-level menu for easier configuration.

= 1.0 =
* Initial internal build.