Skip to main content
Version: v9 (Current)

How to Bundle WordPress Notification Plugin as Library

WordPress Notification plugin bundling enables developers to include the notification system as a library within custom themes and plugins, similar to Advanced Custom Fields. This integration approach provides seamless notification functionality without requiring users to install a separate plugin.

One difference is that you don't have to define anything. Just include the plugin's load.php file like this:

require_once( 'path/to/plugin/notification/load.php' );

Notification will figure out its paths and URLs.

note

When bundled, the Notification initializes on init 4 to make sure it gets the priority. Notification plugin instantinated as a normal plugin is ignored.