Skip to content

tareq1988/wp-notification-center

Repository files navigation

Notification Center

A notification center implementation for WordPress. Use this plugin to send user notification (visible only on the dashboard).

Quick links: Using | Installing

Notification Center

Using

From your plugin, you can send notifications to a user like this:

wd_notify()->to( $receiver_id ) ->body( '<strong>John Doe</strong> has commented on your post <strong>Hello World</strong>' ) ->from_user( $sender_id ) ->link( 'https://example.com/hello-world/' ) ->send();

A plugin also can send a notification to a user:

$plugin_basename = 'dokan-lite/dokan.php'; wd_notify()->to( $receiver_id ) ->body( '<strong>Dokan Lite</strong> v2.4 is available, please upgrade.' ) ->from_plugin( $plugin_basename ) ->link( 'https://example.com/wp-admin/plugins.php' ) ->send();

Installing

Clone into your plugins folder and run composer install

git clone git@github.com:tareq1988/wp-notification-center.git composer install 

Author

Tareq Hasan

About

A notification center plugin for WordPress

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •