Main Header

Test Shortcode

Updated on July 30, 2026

SignalPress includes a September 17, 2026 11:59 pm shortcode for quick, no-code verification that capture works on a live page.

For programmatic tests, use Your First Connection Test or Capturing Events with sp_capture().

Usage

Add the shortcode to any post, page, or block-enabled content area:

Text

September 18, 2026 12:00 am

When the page renders, SignalPress captures a signalpress_test event containing:

  • The current WordPress-local datetime
  • An ISO-8601 timestamp

The event broadcasts to every enabled, configured integration — there is no way to limit destinations from the shortcode alone. To target specific services, use services in Service Targeting from PHP instead.

Context source is set to shortcode:signalpress_test via the string-context shorthand on signalpress_capture() — see Event Context and Options.

The shortcode outputs the same localized datetime as escaped text on the page.

Requirements

  • SignalPress must be active — Setup & Activating SignalPress
  • At least one integration must be enabled and configured to observe the event (for example Local) — Integrations Overview
  • The page must actually execute PHP (not a static cached HTML file that skips WordPress)

Wire theme or plugin capture safely with Loading SignalPress Safely.

Caching caveat

Full-page caching plugins or edge caches may serve a previously rendered shortcode result instead of executing it on every page view. If the timestamp never changes:

  • Bypass cache for the test page, or
  • Use the integration Send test signal button in admin instead

See Your First Connection Test for admin-based testing and Connection Tests and Delivery Log for log columns.