https://github.com/tareq1988/wp-notification-center
A notification center plugin for WordPress
https://github.com/tareq1988/wp-notification-center
notification notification-center plugin plugins-wordpress rest-api wordpress
Last synced: 3 months ago
JSON representation
A notification center plugin for WordPress
- Host: GitHub
- URL: https://github.com/tareq1988/wp-notification-center
- Owner: tareq1988
- Created: 2020-04-12T11:19:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-01T18:50:04.000Z (almost 4 years ago)
- Last Synced: 2025-03-23T10:51:07.617Z (about 1 year ago)
- Topics: notification, notification-center, plugin, plugins-wordpress, rest-api, wordpress
- Language: PHP
- Size: 47.9 KB
- Stars: 17
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Notification Center
A notification center implementation for WordPress. Use this plugin to send user notification (visible only on the dashboard).
Quick links: [Using](#using) | [Installing](#installing)

## Using
From your plugin, you can send notifications to a user like this:
```php
wd_notify()->to( $receiver_id )
->body( 'John Doe has commented on your post Hello World' )
->from_user( $sender_id )
->link( 'https://example.com/hello-world/' )
->send();
```
A plugin also can send a notification to a user:
```php
$plugin_basename = 'dokan-lite/dokan.php';
wd_notify()->to( $receiver_id )
->body( 'Dokan Lite 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](https://github.com/tareq1988)