Siteward Child is now on WordPress.org. Install it on every site you manage, free and unlimited.Get Siteward Child
Developer docs

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.

Start with alerts Hook reference

Built for agencies managing WordPress at scaleUnlimited sites, freeSelf-hostedNo per-site fees★★★★★ on WordPress.org

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() and Omnis_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

FeatureNeeds
Alerts, flags, Sites columns, settings, export hooksAny current Siteward
omnis_backup_report, environment and site data in the snapshotSiteward 0.19.0
omnis_child_backup_report, omnis_child_sync_extra, one-click login switchSiteward Child or Advanced Child 0.10.0
omnis_reports_sectionsSiteward 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

ArgumentContents
$site_idThe site’s ID. Omnis_Sites::get( $site_id ) returns its row (name, url, connection_state and so on).
$typeWhat happened (see below).
$subject, $messageThe email’s subject and plain-text body, already translated.
$payloadStructured 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.
$typeSent when
down, upA 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_cronThe flag first appears.
vulnerableNew known vulnerabilities are found.
update_rolled_backA safe update was rolled back.
ssl_expiring, ssl_expired, domain_expiring, visual_changed, autopatch, reminderSiteward Pro: certificate and domain expiry, visual update checks, vulnerability auto-patching and client reminders.
Your own flag keysWhen 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.

KeyTypeMeaning
providerstringA short name of yours, like acme-backup. Shown on the site’s page. Empty means nothing reported.
has_backupsboolAt least one good backup exists. False raises No backups.
last_backupintUnix time of the newest backup. Older than the Stale backup setting (7 days by default) raises Backup stale.
last_successint or nullUnix time of the newest successful backup.
has_errorsboolThe latest backup failed. Raises Backup failing.
error_messagesstring[]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

  1. Collect the data. Either on the site, sent with each sync through omnis_child_sync_extra, or from the dashboard on omnis_site_synced (fetching a page, calling an API) and stored yourself.
  2. Raise the flag in omnis_flags, from stored data only. It runs after every sync and every uptime check.
  3. Name it in omnis_flag_meta, with a severity: critical, warning or info.
  4. 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'] ? '&#10003;' : '&#10007;' ) : '&mdash;';
	},
	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:

KeyContents
site_idThe site’s ID.
is_up, load_time_ms, critical_error, conn_errorUptime state, last response time, the critical-error page detected, the last sync failed.
updatescore, plugins and themes with pending updates.
backup, backup_modeThe six-key backup report and the site’s mode (updraft, external or off).
cron, healthOverdue WP-Cron events; recovery mode, paused plugins and Site Health counts.
php_version, wp_version, server_ipAs reported.
envThe server environment (see Site data). Siteward 0.19.0, Child 0.10.0.
extraWhatever 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

KeyExample
web_server, web_server_versionNginx, 1.24.0 (many hosts hide the version)
db_type, db_versionMariaDB, 10.11.6
php_sapifpm-fcgi
php_memory_limit, max_execution_time, upload_max, post_max, max_input_vars256M, 30, 64M, 64M, 1000
php_extensionsWhich of curl, gd, imagick, intl, mbstring, openssl, sodium, zip, exif, fileinfo, opcache, redis, memcached and apcu are loaded
opcache, object_cachetrue, redis (empty = no persistent object cache)
wp_memory_limit, wp_max_memory40M, 256M
wp_debug, wp_debug_display, wp_debug_log, wp_environmentfalse, false, false, production
https, multisitetrue, false
curl_version, openssl_version, os, arch_bits8.5.0, OpenSSL 3.0.13 30 Jan 2024, Linux, 64
disk_freeBytes free where the host allows the check, else 0
locale, timezonefr_FR, Europe/Paris
login_enabled, login_lockedWhether one-click login is allowed, and whether wp-config.php locks it off
child_version0.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 keyContents
titleThe heading. Required.
introOptional line under the heading.
rowsA 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.
htmlOptional 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.

WhereHowWhat it does
DashboardSettings, One-click loginThe 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 siteSettings, Siteward Connection, One-click loginThe 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 sitedefine( 'SITEWARD_DISABLE_ONE_CLICK_LOGIN', true ); in wp-config.phpLocked 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

HookArgumentsWhat it’s for
omnis_dispatch_channels
Dashboard action
$site_id, $type, $subject, $message, $payloadFires 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_notify
Dashboard filter
$send, $site_id, $type, $payloadReturn 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_changed
Dashboard action
$site_id, $previous, $currentA 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_transitions
Dashboard filter
$handled, $transitionsThe 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_findings
Dashboard filter
$by_siteNew vulnerability findings before per-site alerts. Consume the ones you alert on as a group; return the rest.

Sync, flags and site data

HookArgumentsWhat it’s for
omnis_site_synced
Dashboard action
$site_id, $snapshot, $flagsA 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_flags
Dashboard filter
$flags, $snapshot, $settingsAdd 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_meta
Dashboard filter
$metaLabel and severity (critical, warning or info) for each flag key, so badges and alerts can show yours.
omnis_status_filters
Dashboard filter
$filtersEntries in the Sites page status filter: key => label plus the flags it matches.
omnis_backup_report
Dashboard filter
$backup, $site_id, $siteThe 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_report
Managed site filter
$reportReport backups this site makes some other way. Siteward Child 0.10.0+.
omnis_child_sync_extra
Managed site filter
$extraAdd 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_deleted
Dashboard action
$site_idA site was removed from the dashboard. Delete whatever you keep for it.
omnis_vulns_scanned
Dashboard action
$site_id, $findings, $previous, $newA site’s vulnerability findings changed.
omnis_vuln_feed_refreshed
Dashboard action
$metaThe local vulnerability data was just replaced.

Dashboard screens

HookArgumentsWhat it’s for
omnis_overview_columns
Dashboard filter
$columnsExtra Sites table columns after Status: key => array( ‘label’, ‘width’ ), width like ’96px’ or ‘1fr’.
omnis_overview_cell
Dashboard action
$key, $sitePrint one of your columns’ cells. $site is the row with st_* status fields.
omnis_site_search_text
Dashboard filter
$text, $siteText the Sites search matches for a site. Add your own fields.
omnis_site_detail_cards
Dashboard action
$status, $backup, $cron, $health, $settingsPrint extra info cards on a site’s page (the card grid). $status->site_id is the site.
omnis_site_detail_sections
Dashboard action
$site, $statusPrint full-width sections below the notes on a site’s page.
omnis_critical_lines
Dashboard filter
$lines, $healthExtra lines (HTML) for the Critical box on a site’s page.
omnis_export_columns
Dashboard filter
$columnsColumns in Export CSV: key => heading.
omnis_export_cell
Dashboard filter
$value, $key, $siteOne cell of Export CSV. Fill your own columns here.
omnis_release_notice
Dashboard filter
$noteChange or remove the “what’s new” banner. An empty id shows nothing.

Settings

HookArgumentsWhat it’s for
omnis_settings_defaults
Dashboard filter
$defaultsRegister defaults for settings you add. Read them with Omnis_Settings::get().
omnis_save_settings
Dashboard filter
$new, $inMerge your posted settings into the saved array. $in is already sanitised.
omnis_settings_cards
Dashboard action
$settingsPrint a whole settings card (a div.omnis-settings-card) before the Save button.
omnis_settings_after_fields
Dashboard action
$settingsPrint fields in the Notifications card, after the email recipients.
omnis_settings_notify_checks
Dashboard action
$settingsPrint extra notification checkboxes.
omnis_settings_thresholds
Dashboard action
$settingsPrint extra health-threshold fields.
omnis_tags_after_manager
Dashboard action
$tagsPrint tag tools after the tag manager.
siteward_vuln_feed_enabled
Dashboard filter
$enabledReturn false so the dashboard never contacts the vulnerability feed. Same as SITEWARD_DISABLE_VULN_FEED.
omnis_vuln_feed_base
Dashboard filter
$baseThe vulnerability feed’s base URL, for staging or hosting the feed yourself.

Client reports (Siteward Reports)

HookArgumentsWhat it’s for
omnis_reports_sections
Dashboard filter
$sections, $data, $site_id, $from, $toAdd your own sections to a report, drawn in its email-safe style. Reports 1.6.0+.
omnis_reports_data
Dashboard filter
$data, $site_id, $from, $toEverything a report is built from. Adjust, extend or replace it.
omnis_reports_good_thresholds
Dashboard filter
$thresholdsWhat counts as a good month: uptime percentage and response-time ceiling.

Managed site (Siteward Child)

HookArgumentsWhat it’s for
omnis_child_backup_report
Managed site filter
$reportSee Backups.
omnis_child_sync_extra
Managed site filter
$extraSee Custom checks.
omnis_child_admin_tabs
Managed site filter
$tabsAdd a tab to Settings, Siteward Connection: slug => array( ‘label’, ‘render’ ).
omnis_child_extra_action
Managed site filter
$result, $action, $paramsHandle a signed action of your own. Return null for actions that aren’t yours.

Constants

ConstantWhereEffect
SITEWARD_DISABLE_ONE_CLICK_LOGINManaged siteLocks one-click login off. Child 0.10.0+.
SITEWARD_DISABLE_VULN_FEEDDashboardThe dashboard never contacts the vulnerability feed.
Unlimited sites · free to start

See it on your own sites.

Monitor unlimited sites free, or add Pro when you want expiry alerts, dynamic tags and integrations.