Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 15 days ago
JSON representation

A notification center plugin for WordPress

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)