Developer Reference
Developer Reference
REST API Reference
Last Updated: March 23, 2026DMSI Webhooks exposes a REST API under the dmsi/v1 namespace for managing endpoints and querying logs programmatically. Base URL https://your-site.com/wp-json/dmsi/v1/webhooks/ Authentication Use WordPress cookie authentication (nonce-based) or application passwords. All routes require the manage_dmsi_webhooks capability and a valid plugin license. Rate Limiting 60 requests per minute per WordPress user. Exceeding this returns 429 Too Many...
Available WordPress Filters
Last Updated: March 23, 2026DMSI Webhooks exposes the following WordPress filters for programmatic customization. dmsi_register_webhook_event Register additional custom event types. Parameters: array $events — existing event definitions Return: Modified events array add_filter('dmsi_register_webhook_event', function(array $events): array { $events[] = [ 'name' => 'order.shipped', 'category' => 'custom', 'description' => 'Fires when an order is shipped', 'sample_payload' => ['order_id' => 123], ];...
Available WordPress Actions
Last Updated: March 23, 2026DMSI Webhooks fires the following WordPress actions that you can hook into. dmsi_webhooks_process_event Fired by dmsi_trigger_webhook() when an event is triggered. The default handler (QueueManager::enqueue()) is hooked here. You can add your own handler for every event. Parameters: ($event_name, $data, $context) add_action('dmsi_webhooks_process_event', function($event_name, $data, $context) { // Custom logging for every webhook event processed error_log("Webhook...
Public API Functions
Last Updated: March 23, 2026DMSI Webhooks exposes two global PHP functions for use in other plugins and themes. dmsi_trigger_webhook() Enqueue webhook deliveries for a named event to all subscribed endpoints. dmsi_trigger_webhook( string $event_name, array $data = [], array $context = [] ): int Parameters: Parameter Type Description $event_name string Registered event name (e.g., license.created) $data array Event-specific payload data...
WP-Cron Jobs Reference
Last Updated: March 23, 2026DMSI Webhooks registers the following recurring WP-Cron jobs on plugin activation. Registered Cron Hooks Hook Frequency Handler Purpose dmsi_webhooks_daily_cleanup Daily LogCleanup Prune old logs, clear debug entries, clear expired rotation secrets dmsi_webhooks_daily_digest Daily NotificationManager Send daily failure digest email (if mode = daily) dmsi_webhooks_rotation_cleanup Daily NotificationManager Additional rotation secret cleanup dmsi_webhooks_license_validation Daily LicenseManager Validate license...
WordPress Options Reference
Last Updated: March 23, 2026DMSI Webhooks stores configuration and state in the following WordPress options (wp_options table). Options Option Key Type Description dmsi_webhook_settings JSON Main plugin settings (see fields below) dmsi_webhooks_db_version string Database schema version (e.g., 1.1) dmsi_webhooks_license JSON License data: encrypted key, status, dates, activation counts dmsi_webhooks_license_key string Plaintext license key for unified DMSI license UI dmsi_webhooks_license_status string...
