apply_filters( "{$this->prefix}_notifications_url" )

Example usage inside your plugin bootstrap:


Description Description

$notifier = new Gocodebox_Banner_Notifier( array( ‘prefix’ => ‘myplugin’, // will hook wp_ajax_myplugin_notifications, etc.
‘version’ => ‘1.0.0’, // used for transient key separation ‘notifications_url’ => ‘https://example.com/notifications.json‘, ) );


Top ↑

Source Source

File: libraries/banner-notifications/src/notifications.php

View on GitHub



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.