Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-01T18:50:04.000Z (over 2 years ago)
- Last Synced: 2023-03-12T06:35:00.618Z (almost 2 years ago)
- Topics: notification, notification-center, plugin, plugins-wordpress, rest-api, wordpress
- Language: PHP
- Size: 47.9 KB
- Stars: 14
- Watchers: 3
- Forks: 4
- 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)
![Notification Center](http://tareq.in/ojSYXK+)
## 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 [email protected]:tareq1988/wp-notification-center.git
composer install
```### Author
[Tareq Hasan](https://github.com/tareq1988)