Hooks and filters
Stable WordPress actions and filters exposed by Stalza Security for advanced customization.
Use these only when you know what you are doing — most sites never need them. Prefer Settings UI for normal configuration.
Actions
| Hook | When |
|---|---|
stalza_sec_activated |
Plugin activated |
stalza_sec_deactivated |
Plugin deactivated |
stalza_sec_loaded |
All modules booted (Plugin instance passed) |
stalza_sec_upgraded |
Schema upgraded ($from, $to) |
stalza_sec_event_recorded |
Event written ($id, $type, $row) |
Filters
| Hook | Purpose |
|---|---|
stalza_sec_modules |
Alter the module list before registration |
stalza_sec_feature_enabled |
Override a resolved feature flag ($enabled, $flag, $edition) — for tests/staging, not piracy |
stalza_sec_event_types |
Extend / replace the event type registry |
stalza_sec_jobs |
Register background job handlers for the queue |
stalza_sec_cloud_api_base |
Override cloud API base (Pro; default https://stalza.com/api/stalza-security/v1) |
stalza_sec_update_channel_beta |
Return true to request Pro beta updates when licensed |
Example
add_filter( 'stalza_sec_cloud_api_base', function () {
return 'https://stalza.test/api/stalza-security/v1';
} );