WordPress.org
Extensions
Support
Search…
Version 8
Notification – Custom Notifications and Alerts for WordPress
Known issues
🤸♀️ User guide
Update broke my site
How Notification plugin works
Who can use this plugin
How to create Notifications
Troubleshooting
Advanced
🔧
Developer
General
Plugin loading chain
Runtime
Extension possibilities
Creating an extension
Customizations
Bundling Notification plugin
White label mode
Notifications
Triggers
Carriers
Recipients
Snippets
🧩
Extensions
Installation
Planned extensions
3rd Party Extensions
Custom Fields
Email Attachments
Push
Scheduled Triggers
Slack
Twilio
Powered By
GitBook
Runtime
The plugin initializes itself on action
init
with priority
5
(see the
loading chain
) so after this hook you can access the whole Runtime object with a simple wrapper class.
To get the Runtime object:
1
$runtime
=
\
Notification
::
runtime
();
Copied!
To get the Runtime component:
1
$cache
=
\
Notification
::
component
(
'core_whitelabel'
);
Copied!
To get plugin version:
1
$version
=
\
Notification
::
version
();
Copied!
To get plugin filesystem:
1
$fs
=
\
Notification
::
fs
();
Copied!
Please note the
Notification
class lives in the global namespace.
Previous
Plugin loading chain
Next
Extension possibilities
Last modified
6mo ago
Copy link