Extend Siteward with the hooks you already know.
Send alerts to your own chat, report backups from your own servers, add checks, columns and client report sections, and lock down one-click login. Plain WordPress actions and filters, with examples you can copy.
Getting started
Siteward is ordinary WordPress code, so you extend it the way you extend any plugin: with actions and filters, from a small plugin of your own. This guide covers the hooks, what each side can see, and worked examples you can copy.
Two sides, two places for code
- Dashboard The site running Siteward (your control panel). Alerts, flags, the Sites table, settings, exports and client reports are all here.
- Managed site Each site running Siteward Child or Siteward Advanced Child. Code here can report things only that site knows: its backups, plugins, settings, anything in its database.
Data only flows one way. The dashboard pulls from each site over the signed connection, and a site never contacts the dashboard. So a site-side hook adds data to what the site sends when it’s asked, and the dashboard decides what to do with it.
Where to put your code
A must-use plugin is the simplest home: a PHP file in wp-content/mu-plugins/ loads on every request, can’t be deactivated by accident, and survives Siteward updates. A normal plugin works just as well if you’d rather manage it from the Plugins screen. Never edit Siteward’s own files, as updates replace them.
<?php
/**
* Plugin Name: Acme extensions for Siteward
*/
defined( 'ABSPATH' ) || exit;
// Your hooks go here.
Conventions
- Hook names start with
omnis_. That’s Siteward’s internal prefix (the plugin’s original name), and it will stay. - Prefix your own flag keys, data keys and options with something of yours, like
acme_, so they never collide with Siteward’s. - Siteward’s PHP classes are
Omnis_*. The ones these docs mention are safe to call:Omnis_Sites::get(),Omnis_Settings::get(),Omnis_Flags::meta(),Omnis_Notifications::dispatch()andOmnis_Notifications::log(). Treat everything else as internal. - The hooks in the reference are the supported way in. Changes to them are listed in the changelog.
Versions
| Feature | Needs |
|---|---|
| Alerts, flags, Sites columns, settings, export hooks | Any current Siteward |
omnis_backup_report, environment and site data in the snapshot | Siteward 0.19.0 |
omnis_child_backup_report, omnis_child_sync_extra, one-click login switch | Siteward Child or Advanced Child 0.10.0 |
omnis_reports_sections | Siteward Reports 1.6.0 |
Alerts and chat
Every alert Siteward sends, from core or Pro, goes through one function, Omnis_Notifications::dispatch(). It sends the email and then fires omnis_dispatch_channels, which is where you add your own channel. You don’t need Zapier or Pro for this.
Example: Mattermost
Dashboard Create an incoming webhook in Mattermost (Integrations, Incoming Webhooks), put its address in the dashboard’s wp-config.php, and add this plugin. Slack, Rocket.Chat and Discord’s Slack-compatible webhooks take the same text field.
<?php
/**
* Plugin Name: Siteward alerts to Mattermost
* Description: Posts every Siteward alert to a Mattermost incoming webhook.
*/
defined( 'ABSPATH' ) || exit;
// In the dashboard's wp-config.php:
// define( 'ACME_MATTERMOST_WEBHOOK', 'https://chat.example.com/hooks/your-hook-id' );
add_action(
'omnis_dispatch_channels',
function ( $site_id, $type, $subject, $message, $payload ) {
if ( ! defined( 'ACME_MATTERMOST_WEBHOOK' ) ) {
return;
}
$icons = array(
'down' => ':red_circle:',
'up' => ':large_green_circle:',
'vulnerable' => ':rotating_light:',
);
$icon = isset( $icons[ $type ] ) ? $icons[ $type ] : ':warning:';
wp_remote_post(
ACME_MATTERMOST_WEBHOOK,
array(
'timeout' => 5,
'blocking' => false, // never hold up the other channels
'headers' => array( 'Content-Type' => 'application/json' ),
'body' => wp_json_encode(
array(
'username' => 'Siteward',
'text' => $icon . ' **' . $subject . "**\n" . $message,
)
),
)
);
// Shows in the dashboard's notification log next to email and Zapier.
Omnis_Notifications::log( $site_id, $type, 'mattermost', $payload );
},
10,
5
);
The request is non-blocking, so a slow chat server never delays the email or the next alert. Each alert also appears in the dashboard’s notification log with the channel mattermost.
What you get
| Argument | Contents |
|---|---|
$site_id | The site’s ID. Omnis_Sites::get( $site_id ) returns its row (name, url, connection_state and so on). |
$type | What happened (see below). |
$subject, $message | The email’s subject and plain-text body, already translated. |
$payload | Structured data: event, site, url, time (ISO 8601), plus flag, http_code or the vulnerability details where they apply. It’s the same body Pro sends to Zapier. |
$type | Sent when |
|---|---|
down, up | A site goes down (after the retries) or recovers. Pro sends one down for a whole server when several of its sites go down together. |
no_backup, stale_backup, failing_backup, failing_cron | The flag first appears. |
vulnerable | New known vulnerabilities are found. |
update_rolled_back | A safe update was rolled back. |
ssl_expiring, ssl_expired, domain_expiring, visual_changed, autopatch, reminder | Siteward Pro: certificate and domain expiry, visual update checks, vulnerability auto-patching and client reminders. |
| Your own flag keys | When you dispatch them (see Custom checks). |
Silencing alerts
Return false from omnis_should_notify to drop an alert before anything is sent. For example, to keep a channel quiet outside office hours, or to send nothing for sites tagged as staging.
add_filter(
'omnis_should_notify',
function ( $send, $site_id, $type ) {
// Never alert on recoveries for this one site.
return ( 42 === (int) $site_id && 'up' === $type ) ? false : $send;
},
10,
3
);
The settings checkboxes (Site down, Backup problems and so on) are checked before dispatch() is called, so an alert type that’s switched off never reaches your channel either.
Backups
Out of the box, Siteward reads UpdraftPlus on each site. If your backups run some other way, report them yourself and Siteward will raise No backups, Backup stale and Backup failing, send the alerts, and show the result on the site’s page and in client reports, exactly as it does for UpdraftPlus.
Set the site’s backup mode first. On the site’s page (or in Settings for the whole fleet), choose Server-level / external backups. In that mode Siteward ignores UpdraftPlus and judges the site only on what you report. A site you report nothing for stays unjudged, as before.
The report
Both hooks below take and return the same six keys. Anything else is dropped, and wrong types are corrected.
| Key | Type | Meaning |
|---|---|---|
provider | string | A short name of yours, like acme-backup. Shown on the site’s page. Empty means nothing reported. |
has_backups | bool | At least one good backup exists. False raises No backups. |
last_backup | int | Unix time of the newest backup. Older than the Stale backup setting (7 days by default) raises Backup stale. |
last_success | int or null | Unix time of the newest successful backup. |
has_errors | bool | The latest backup failed. Raises Backup failing. |
error_messages | string[] | Up to five messages. The first shows on the site’s page. |
From the site
Managed site Use omnis_child_backup_report when the site knows how its backups went: your backup agent writes a status option or file, or the site can ask your backup server. Needs Siteward Child 0.10.0.
<?php
/**
* Plugin Name: Acme backups for Siteward
* Description: Reports this site's backups (made by our own backup system) to the Siteward dashboard.
*/
defined( 'ABSPATH' ) || exit;
add_filter(
'omnis_child_backup_report',
function ( $report ) {
// However your system records its last run: an option your backup agent
// writes, a status file, or a call to your backup server.
$status = get_option( 'acme_backup_status' );
// e.g. array( 'last_run' => 1732300000, 'last_ok' => 1732300000, 'ok' => true, 'error' => '' )
if ( ! is_array( $status ) || empty( $status['last_run'] ) ) {
return $report; // Nothing to report: keep what Siteward found (UpdraftPlus, if any).
}
return array(
'provider' => 'acme-backup',
'has_backups' => ! empty( $status['last_ok'] ),
'last_backup' => (int) $status['last_run'],
'last_success' => ! empty( $status['last_ok'] ) ? (int) $status['last_ok'] : null,
'has_errors' => empty( $status['ok'] ),
'error_messages' => empty( $status['ok'] ) && ! empty( $status['error'] ) ? array( (string) $status['error'] ) : array(),
);
}
);
From the dashboard
Dashboard Use omnis_backup_report when your backup servers know and the sites don’t. It runs on every sync, so cache the answer. This also works for sites on an older child.
<?php
/**
* Plugin Name: Acme backup server for Siteward
* Description: Asks our backup server about each site's backups when Siteward syncs it.
*/
defined( 'ABSPATH' ) || exit;
// In the dashboard's wp-config.php:
// define( 'ACME_BACKUP_API', 'https://backups.example.com/api/status' );
// define( 'ACME_BACKUP_TOKEN', 'your-token' );
add_filter(
'omnis_backup_report',
function ( $backup, $site_id, $site ) {
if ( ! defined( 'ACME_BACKUP_API' ) ) {
return $backup;
}
$host = (string) wp_parse_url( $site->url, PHP_URL_HOST );
$key = 'acme_backup_' . md5( $host );
$state = get_transient( $key );
if ( false === $state ) {
// Runs on every sync, so ask the backup server at most every 15 minutes per site.
$resp = wp_remote_get(
add_query_arg( 'host', rawurlencode( $host ), ACME_BACKUP_API ),
array(
'timeout' => 5,
'headers' => array( 'Authorization' => 'Bearer ' . ACME_BACKUP_TOKEN ),
)
);
$state = 200 === wp_remote_retrieve_response_code( $resp ) ? json_decode( wp_remote_retrieve_body( $resp ), true ) : array();
set_transient( $key, is_array( $state ) ? $state : array(), 15 * MINUTE_IN_SECONDS );
}
if ( empty( $state['last_run'] ) ) {
return $backup; // The backup server doesn't know this site.
}
return array(
'provider' => 'acme-backup',
'has_backups' => ! empty( $state['last_ok'] ),
'last_backup' => strtotime( $state['last_run'] ),
'last_success' => ! empty( $state['last_ok'] ) ? strtotime( $state['last_ok'] ) : null,
'has_errors' => ! empty( $state['failed'] ),
'error_messages' => ! empty( $state['error'] ) ? array( (string) $state['error'] ) : array(),
);
},
10,
3
);
Custom checks and flags
A flag is a short key on a site, like failing_cron. Flags drive the coloured badges, the status filter, the “Needs attention” count and alerts. Your own checks can add flags in exactly the same way.
How a check fits together
- Collect the data. Either on the site, sent with each sync through
omnis_child_sync_extra, or from the dashboard onomnis_site_synced(fetching a page, calling an API) and stored yourself. - Raise the flag in
omnis_flags, from stored data only. It runs after every sync and every uptime check. - Name it in
omnis_flag_meta, with a severity:critical,warningorinfo. - Alert on it from
omnis_flags_changed. Core only alerts on its own flags, so without this step your flag shows on screen but sends nothing.
Example: Matomo and a Content-Security-Policy header
Managed site This sends whether Matomo is active with every sync. Needs Siteward Child 0.10.0.
<?php
/**
* Plugin Name: Acme checks for Siteward (site side)
* Description: Sends this site's Matomo status to the Siteward dashboard with each sync.
*/
defined( 'ABSPATH' ) || exit;
add_filter(
'omnis_child_sync_extra',
function ( $extra ) {
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
$extra['acme_matomo'] = array(
'active' => is_plugin_active( 'matomo/matomo.php' ) || is_plugin_active( 'wp-piwik/wp-piwik.php' ),
);
return $extra;
}
);
Dashboard This raises Matomo missing from that data, checks each homepage for a Content-Security-Policy header itself (at most every 6 hours per site), raises No CSP header, alerts when either first appears, and adds a status filter, a Sites column, an Export CSV column and a section in client reports.
<?php
/**
* Plugin Name: Acme checks for Siteward (dashboard side)
* Description: A "Matomo missing" flag from site data, a Content-Security-Policy check, alerts, a Sites column, an export column and a client report section.
*/
defined( 'ABSPATH' ) || exit;
// 1. Name the flags, so badges, the status filter and alerts can show them.
add_filter(
'omnis_flag_meta',
function ( $meta ) {
$meta['acme_no_matomo'] = array( 'label' => 'Matomo missing', 'severity' => 'warning' );
$meta['acme_no_csp'] = array( 'label' => 'No CSP header', 'severity' => 'warning' );
return $meta;
}
);
add_filter(
'omnis_status_filters',
function ( $filters ) {
$filters['acme_checks'] = array( 'label' => 'Acme checks', 'flags' => array( 'acme_no_matomo', 'acme_no_csp' ) );
return $filters;
}
);
// 2. Check the homepage's CSP header from the dashboard, at most every 6 hours per site.
add_action(
'omnis_site_synced',
function ( $site_id ) {
$key = 'acme_csp_' . (int) $site_id;
if ( false !== get_transient( $key ) ) {
return;
}
$site = Omnis_Sites::get( $site_id );
$resp = $site ? wp_remote_get( $site->url, array( 'timeout' => 8, 'redirection' => 3, 'limit_response_size' => 1024 ) ) : null;
if ( ! $resp || is_wp_error( $resp ) ) {
return;
}
$csp = wp_remote_retrieve_header( $resp, 'content-security-policy' );
set_transient( $key, array( 'csp' => is_array( $csp ) ? implode( '; ', $csp ) : (string) $csp ), 6 * HOUR_IN_SECONDS );
}
);
// 3. Raise the flags. Runs after every sync and every uptime check, from stored data only.
add_filter(
'omnis_flags',
function ( $flags, $snapshot ) {
$matomo = isset( $snapshot['extra']['acme_matomo'] ) ? $snapshot['extra']['acme_matomo'] : null;
if ( is_array( $matomo ) && empty( $matomo['active'] ) ) {
$flags[] = 'acme_no_matomo';
}
$csp = get_transient( 'acme_csp_' . (int) $snapshot['site_id'] );
if ( is_array( $csp ) && '' === $csp['csp'] ) {
$flags[] = 'acme_no_csp';
}
return $flags;
},
10,
2
);
// 4. Alert when one of them first appears. Core only alerts on its own flags.
add_action(
'omnis_flags_changed',
function ( $site_id, $previous, $current ) {
$meta = Omnis_Flags::meta();
foreach ( array_diff( array_intersect( $current, array( 'acme_no_matomo', 'acme_no_csp' ) ), $previous ) as $flag ) {
$site = Omnis_Sites::get( $site_id );
$label = $meta[ $flag ]['label'];
Omnis_Notifications::dispatch(
$site_id,
$flag,
sprintf( '[Siteward] %s: %s', $label, $site->name ),
sprintf( "%s\n\nSite: %s\nURL: %s", $label, $site->name, $site->url ),
array( 'event' => 'flag', 'flag' => $flag, 'site' => $site->name, 'url' => $site->url, 'time' => current_time( 'c' ) )
);
}
},
10,
3
);
// 5. A CSP column on the Sites page.
add_filter(
'omnis_overview_columns',
function ( $columns ) {
$columns['acme_csp'] = array( 'label' => 'CSP', 'width' => '64px' );
return $columns;
}
);
add_action(
'omnis_overview_cell',
function ( $key, $site ) {
if ( 'acme_csp' !== $key ) {
return;
}
$csp = get_transient( 'acme_csp_' . (int) $site->id );
echo is_array( $csp ) ? ( '' !== $csp['csp'] ? '✓' : '✗' ) : '—';
},
10,
2
);
// 6. The same in Export CSV.
add_filter(
'omnis_export_columns',
function ( $columns ) {
$columns['acme_csp'] = 'CSP header';
return $columns;
}
);
add_filter(
'omnis_export_cell',
function ( $value, $key, $site ) {
if ( 'acme_csp' !== $key ) {
return $value;
}
$csp = get_transient( 'acme_csp_' . (int) $site->id );
return is_array( $csp ) ? ( '' !== $csp['csp'] ? 'Present' : 'Missing' ) : '';
},
10,
3
);
// 7. A section in the client report (Siteward Reports add-on).
add_filter(
'omnis_reports_sections',
function ( $sections, $data, $site_id ) {
$csp = get_transient( 'acme_csp_' . (int) $site_id );
if ( is_array( $csp ) ) {
$sections[] = array(
'title' => 'Security headers',
'rows' => array(
array(
'label' => 'Content Security Policy',
'value' => '' !== $csp['csp'] ? 'In place' : 'Missing',
'state' => '' !== $csp['csp'] ? 'good' : 'warn',
),
),
);
}
return $sections;
},
10,
3
);
The same pattern covers SE Ranking, uptime from another monitor, a licence check or anything with an API: fetch on omnis_site_synced with a transient so you don’t call the API on every sync, then read the stored result in omnis_flags.
Keep omnis_flags fast. It runs every few minutes for every site (after each uptime check), so never make a request or a slow query in it. Read what you stored.
What’s in the snapshot
omnis_flags and omnis_site_synced receive the site’s snapshot. The keys you’ll use most:
| Key | Contents |
|---|---|
site_id | The site’s ID. |
is_up, load_time_ms, critical_error, conn_error | Uptime state, last response time, the critical-error page detected, the last sync failed. |
updates | core, plugins and themes with pending updates. |
backup, backup_mode | The six-key backup report and the site’s mode (updraft, external or off). |
cron, health | Overdue WP-Cron events; recovery mode, paused plugins and Site Health counts. |
php_version, wp_version, server_ip | As reported. |
env | The server environment (see Site data). Siteward 0.19.0, Child 0.10.0. |
extra | Whatever the site added with omnis_child_sync_extra. Siteward 0.19.0, Child 0.10.0. |
Both env and extra are stored with the site and kept through the uptime checks between syncs, so a flag you raise from them stays put instead of flickering.
Site data and environment
With Siteward Child 0.10.0, every sync reports the server the site runs on. It appears on the site’s Environment card, in the Sites page Environment filter and Export CSV, and in $snapshot['env'] for your code.
Environment keys
| Key | Example |
|---|---|
web_server, web_server_version | Nginx, 1.24.0 (many hosts hide the version) |
db_type, db_version | MariaDB, 10.11.6 |
php_sapi | fpm-fcgi |
php_memory_limit, max_execution_time, upload_max, post_max, max_input_vars | 256M, 30, 64M, 64M, 1000 |
php_extensions | Which of curl, gd, imagick, intl, mbstring, openssl, sodium, zip, exif, fileinfo, opcache, redis, memcached and apcu are loaded |
opcache, object_cache | true, redis (empty = no persistent object cache) |
wp_memory_limit, wp_max_memory | 40M, 256M |
wp_debug, wp_debug_display, wp_debug_log, wp_environment | false, false, false, production |
https, multisite | true, false |
curl_version, openssl_version, os, arch_bits | 8.5.0, OpenSSL 3.0.13 30 Jan 2024, Linux, 64 |
disk_free | Bytes free where the host allows the check, else 0 |
locale, timezone | fr_FR, Europe/Paris |
login_enabled, login_locked | Whether one-click login is allowed, and whether wp-config.php locks it off |
child_version | 0.10.0 |
Nothing that identifies the database (name, host or user), no passwords or keys, and no file paths are sent. A key a site hasn’t reported is simply missing, so check with isset().
add_filter(
'omnis_flags',
function ( $flags, $snapshot ) {
$env = isset( $snapshot['env'] ) ? $snapshot['env'] : array();
// Debug output visible to visitors on a live site.
if ( ! empty( $env['wp_debug_display'] ) && 'production' === ( $env['wp_environment'] ?? '' ) ) {
$flags[] = 'acme_debug_shown';
}
return $flags;
},
10,
2
);
Your own data from the site
Managed site omnis_child_sync_extra adds anything the site knows to each sync: an option, a plugin’s settings, a count from its database. Key it with your own prefix. The whole array may be up to 64 KB of JSON; anything larger is replaced with array( '_error' => 'too_large' ) so you can tell. Never put secrets in it: the dashboard stores it and other add-ons there can read it.
On the dashboard it’s $snapshot['extra']['your_key'] in omnis_flags and omnis_site_synced. See the Matomo example under Custom checks.
Your own signed actions
For something the dashboard should ask a site to do on demand, rather than on every sync, handle an action of your own with omnis_child_extra_action on the site, and call it from the dashboard with Omnis_Connection::request(). The request is signed and replay-protected like every other.
// On the site.
add_filter(
'omnis_child_extra_action',
function ( $result, $action, $params ) {
if ( 'acme_flush_cache' !== $action ) {
return $result; // Not ours: leave it for others.
}
wp_cache_flush();
return array( 'flushed' => true );
},
10,
3
);
// On the dashboard.
$result = Omnis_Connection::request( $site_id, 'acme_flush_cache' );
if ( is_wp_error( $result ) ) {
error_log( $result->get_error_message() );
}
Dashboard screens
Dashboard Add columns, cards, sections and settings to Siteward’s own screens. Everything you print goes inside Siteward’s admin page, so escape it as usual.
Sites table
omnis_overview_columns adds a column after Status and omnis_overview_cell prints each cell. The CSP column in the Custom checks example shows both. Add text to omnis_site_search_text to make the search box find it.
A site’s page
add_action(
'omnis_site_detail_cards',
function ( $status ) {
if ( ! $status ) {
return;
}
$csp = get_transient( 'acme_csp_' . (int) $status->site_id );
?>
<div class="omnis-info-card">
<h3>Security headers</h3>
<div class="omnis-kv">
<span class="k">Content-Security-Policy</span>
<span class="v <?php echo is_array( $csp ) && '' !== $csp['csp'] ? 'ok' : 'warn'; ?>">
<?php echo esc_html( is_array( $csp ) ? ( '' !== $csp['csp'] ? 'Present' : 'Missing' ) : 'Not checked yet' ); ?>
</span>
</div>
</div>
<?php
}
);
Use omnis_site_detail_sections for something full width below the notes, and omnis_critical_lines to add a line to the Critical box.
Settings
Register a default with omnis_settings_defaults, print the field in a card from omnis_settings_cards, and save it through omnis_save_settings. Read it anywhere with Omnis_Settings::get().
add_filter(
'omnis_settings_defaults',
function ( $defaults ) {
$defaults['acme_mattermost_url'] = '';
return $defaults;
}
);
add_action(
'omnis_settings_cards',
function ( $settings ) {
?>
<div class="omnis-settings-card">
<h2>Mattermost</h2>
<div class="omnis-stack">
<label for="acme_mattermost_url">Incoming webhook URL</label>
<input type="url" id="acme_mattermost_url" name="acme_mattermost_url" value="<?php echo esc_attr( $settings['acme_mattermost_url'] ); ?>" />
</div>
</div>
<?php
}
);
add_filter(
'omnis_save_settings',
function ( $new, $in ) {
$new['acme_mattermost_url'] = esc_url_raw( $in['acme_mattermost_url'] ?? '' );
return $new;
},
10,
2
);
// Then, in the Mattermost example, use the setting instead of the constant:
// $url = Omnis_Settings::get( 'acme_mattermost_url' );
Export CSV
omnis_export_columns adds a heading and omnis_export_cell fills it, as in the Custom checks example. Values are made safe for Excel and Google Sheets for you.
Client reports
Dashboard With the Siteward Reports add-on (1.6.0 or later), omnis_reports_sections adds your own sections to each client’s report, after Environment and before the sign-off. You return plain data and the report draws it in its own style, so it looks right in every mail client.
// 7. A section in the client report (Siteward Reports add-on).
add_filter(
'omnis_reports_sections',
function ( $sections, $data, $site_id ) {
$csp = get_transient( 'acme_csp_' . (int) $site_id );
if ( is_array( $csp ) ) {
$sections[] = array(
'title' => 'Security headers',
'rows' => array(
array(
'label' => 'Content Security Policy',
'value' => '' !== $csp['csp'] ? 'In place' : 'Missing',
'state' => '' !== $csp['csp'] ? 'good' : 'warn',
),
),
);
}
return $sections;
},
10,
3
);
| Section key | Contents |
|---|---|
title | The heading. Required. |
intro | Optional line under the heading. |
rows | A list of array( 'label', 'value', 'state' ). A state of good, warn or bad draws the value as a green, amber or red pill; leave it empty for plain text. |
html | Optional markup under the rows, passed through wp_kses_post. Use inline styles only; email clients ignore stylesheets. |
The filter also receives the report’s data, the site ID and the period, so a section can cover just that month: Matomo or SE Ranking figures fetched for $from to $to, for example. omnis_reports_data changes what the built-in sections show, and omnis_reports_good_thresholds what counts as a good month.
Login and security
One-click login (Open WP Admin) is convenient, but it means whoever controls the dashboard can log in to every site. You can turn it off for the whole dashboard, for one site, or lock it off on a site so nothing can turn it back on.
| Where | How | What it does |
|---|---|---|
| Dashboard | Settings, One-click login | The dashboard never creates a login link. Open WP Admin opens each site’s normal login page. A team policy: someone who controls the dashboard can switch it back. |
| Managed site | Settings, Siteward Connection, One-click login | The site refuses every login link, before checking it. The dashboard has no way to change this setting, and AI access on Advanced Child can’t either. |
| Managed site | define( 'SITEWARD_DISABLE_ONE_CLICK_LOGIN', true ); in wp-config.php | Locked off: the setting can’t be turned on from WP Admin. |
Both site settings need Siteward Child or Advanced Child 0.10.0. The dashboard shows a lock on the Open WP Admin button and “Off on the site” on the Environment card, and the Sites page Environment filter finds every site where it’s allowed or off.
What else the dashboard can do. With login off, the dashboard can still run updates and roll them back, and with Advanced Child it can install plugins, which means running code on the site. If the dashboard is your main risk, use the free Siteward Child, lock one-click login off on each site, and protect the dashboard itself: few administrators, two-factor login, and ideally an IP allowlist on its wp-admin.
How the connection is secured
Each site stores the dashboard’s RSA public key at pairing, using a one-time secret that’s discarded straight after. Every request after that is signed with the dashboard’s private key, checked against the stored public key, and rejected if it’s more than five minutes old or its nonce has been seen. Login links are signed the same way, are single use, and expire after two minutes.
Translations
Siteward and Siteward Child are translated on translate.wordpress.org, and WordPress downloads the translations automatically in each site’s language.
Translations go live once a translation editor for that language approves them. If you’d like to look after a language, translate a first batch and then ask on the Polyglots team blog to become the Project Translation Editor (PTE) for it, and let us know through the contact page so we can support the request.
Siteward Pro, Siteward Reports, Siteward MCP and Siteward Advanced Child aren’t on WordPress.org, so they ship their translations inside the plugin. Each has a template in its languages/ folder (omnis-dashboard-pro.pot, siteward-reports.pot, siteward-mcp.pot; Advanced Child uses siteward-child.pot). Translate it with Poedit or Loco Translate and send us the .po file to include in the next release.
Hook reference
Every public hook, grouped by what it’s for. Dashboard hooks go on the dashboard, Managed site hooks on each managed site. The arguments are what your callback receives; pass the count as the fourth argument to add_filter() or add_action() when you need more than the first.
Alerts and notifications
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_dispatch_channelsDashboard action | $site_id, $type, $subject, $message, $payload | Fires for every alert after the email is sent. Send it anywhere else from here: chat, a ticket system, a pager. Pro’s Zapier webhooks use it. |
omnis_should_notifyDashboard filter | $send, $site_id, $type, $payload | Return false to drop an alert before any channel fires (no email, no webhook, no log row). Pro’s per-site pause uses it. |
omnis_flags_changedDashboard action | $site_id, $previous, $current | A site’s flags changed during a sync. Core alerts on its own backup and cron flags; send alerts for your own flags from here. |
omnis_uptime_notify_transitionsDashboard filter | $handled, $transitions | The down and recovered changes from one uptime run (site ID => up, code). Alert on some yourself, as a group, and return their site IDs so they aren’t alerted again. Pro groups a whole server going down into one alert here. |
omnis_vuln_notify_findingsDashboard filter | $by_site | New vulnerability findings before per-site alerts. Consume the ones you alert on as a group; return the rest. |
Sync, flags and site data
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_site_syncedDashboard action | $site_id, $snapshot, $flags | A site was just synced and its snapshot stored. The snapshot holds updates, backup, cron, health, the environment (env) and your own site data (extra). |
omnis_flagsDashboard filter | $flags, $snapshot, $settings | Add your own flag keys. Runs after every sync and every uptime check, from stored data, so keep it fast and don’t make requests here. |
omnis_flag_metaDashboard filter | $meta | Label and severity (critical, warning or info) for each flag key, so badges and alerts can show yours. |
omnis_status_filtersDashboard filter | $filters | Entries in the Sites page status filter: key => label plus the flags it matches. |
omnis_backup_reportDashboard filter | $backup, $site_id, $site | The backup report a site is judged on, before flags are worked out. Report backups the site can’t see. Siteward 0.19.0+. |
omnis_child_backup_reportManaged site filter | $report | Report backups this site makes some other way. Siteward Child 0.10.0+. |
omnis_child_sync_extraManaged site filter | $extra | Add your own data (up to 64 KB of JSON) to every sync. It reaches the dashboard as $snapshot[‘extra’]. Siteward Child 0.10.0+. |
omnis_site_deletedDashboard action | $site_id | A site was removed from the dashboard. Delete whatever you keep for it. |
omnis_vulns_scannedDashboard action | $site_id, $findings, $previous, $new | A site’s vulnerability findings changed. |
omnis_vuln_feed_refreshedDashboard action | $meta | The local vulnerability data was just replaced. |
Dashboard screens
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_overview_columnsDashboard filter | $columns | Extra Sites table columns after Status: key => array( ‘label’, ‘width’ ), width like ’96px’ or ‘1fr’. |
omnis_overview_cellDashboard action | $key, $site | Print one of your columns’ cells. $site is the row with st_* status fields. |
omnis_site_search_textDashboard filter | $text, $site | Text the Sites search matches for a site. Add your own fields. |
omnis_site_detail_cardsDashboard action | $status, $backup, $cron, $health, $settings | Print extra info cards on a site’s page (the card grid). $status->site_id is the site. |
omnis_site_detail_sectionsDashboard action | $site, $status | Print full-width sections below the notes on a site’s page. |
omnis_critical_linesDashboard filter | $lines, $health | Extra lines (HTML) for the Critical box on a site’s page. |
omnis_export_columnsDashboard filter | $columns | Columns in Export CSV: key => heading. |
omnis_export_cellDashboard filter | $value, $key, $site | One cell of Export CSV. Fill your own columns here. |
omnis_release_noticeDashboard filter | $note | Change or remove the “what’s new” banner. An empty id shows nothing. |
Settings
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_settings_defaultsDashboard filter | $defaults | Register defaults for settings you add. Read them with Omnis_Settings::get(). |
omnis_save_settingsDashboard filter | $new, $in | Merge your posted settings into the saved array. $in is already sanitised. |
omnis_settings_cardsDashboard action | $settings | Print a whole settings card (a div.omnis-settings-card) before the Save button. |
omnis_settings_after_fieldsDashboard action | $settings | Print fields in the Notifications card, after the email recipients. |
omnis_settings_notify_checksDashboard action | $settings | Print extra notification checkboxes. |
omnis_settings_thresholdsDashboard action | $settings | Print extra health-threshold fields. |
omnis_tags_after_managerDashboard action | $tags | Print tag tools after the tag manager. |
siteward_vuln_feed_enabledDashboard filter | $enabled | Return false so the dashboard never contacts the vulnerability feed. Same as SITEWARD_DISABLE_VULN_FEED. |
omnis_vuln_feed_baseDashboard filter | $base | The vulnerability feed’s base URL, for staging or hosting the feed yourself. |
Client reports (Siteward Reports)
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_reports_sectionsDashboard filter | $sections, $data, $site_id, $from, $to | Add your own sections to a report, drawn in its email-safe style. Reports 1.6.0+. |
omnis_reports_dataDashboard filter | $data, $site_id, $from, $to | Everything a report is built from. Adjust, extend or replace it. |
omnis_reports_good_thresholdsDashboard filter | $thresholds | What counts as a good month: uptime percentage and response-time ceiling. |
Managed site (Siteward Child)
| Hook | Arguments | What it’s for |
|---|---|---|
omnis_child_backup_reportManaged site filter | $report | See Backups. |
omnis_child_sync_extraManaged site filter | $extra | See Custom checks. |
omnis_child_admin_tabsManaged site filter | $tabs | Add a tab to Settings, Siteward Connection: slug => array( ‘label’, ‘render’ ). |
omnis_child_extra_actionManaged site filter | $result, $action, $params | Handle a signed action of your own. Return null for actions that aren’t yours. |
Constants
| Constant | Where | Effect |
|---|---|---|
SITEWARD_DISABLE_ONE_CLICK_LOGIN | Managed site | Locks one-click login off. Child 0.10.0+. |
SITEWARD_DISABLE_VULN_FEED | Dashboard | The dashboard never contacts the vulnerability feed. |
See it on your own sites.
Monitor unlimited sites free, or add Pro when you want expiry alerts, dynamic tags and integrations.