Plugin info

Total downloads: 1,332
Active installs: 10
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 6/13/2015 (3851 days ago)
Added to WordPress: 6/13/2015 (10 years old)
Minimum WordPress version: 3.6.1
Tested up to WordPress version: 4.2.39
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3851 days ago

20/100

Is Sewn In Notifications abandoned?

Possibly abandoned (last update 3851 days ago).

Compatibility

Requires WordPress: 3.6.1
Tested up to: 4.2.39
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Add To Home Screen
Rating 0.0/5 (0 reviews)Active installs 100
WeldPress
Rating 0.0/5 (0 reviews)Active installs 0
Simple App Changelogs
Rating 0.0/5 (0 reviews)Active installs 0

Description

A plugin for WordPress that creates a very pluggable framework to add notifications on the front end of your application. Notifications can be generated by query variables or through template functions and actions.

This plugin can be used to create site wide notifications, or you can narrow it down to specific pages.

Add the Notification Center to Your Template(s)

The most basic way to add notifications is sitewide. You can add the “show” action to a template like your header.php file. This is the most powerful use for the plugin: uniform, centralized notifications.


Create Query Variable Notifications

The simplest way to extend the notification center is to add query variable key/value pairs to generate a new message when url query variables are submitted.

 'update',
        'value' => 'true',
        'message' => "Updated.",
        'args' => 'fade=true'
    );
    $queries[] = array(
        'key' => 'update',
        'value' => 'failed',
        'message' => "Unable to update.",
        'args' => 'dismiss=true&error=true'
    );
    $queries[] = array(
        'key' => 'update',
        'value' => 'finished',
        'message' => "Finished!",
        'args' => 'fade=10000' // wait ten seconds before fading
    );
    return $queries;
}
?>

Now whenever a query variable is added to the end of a page, a message can be shown in the notification center.

So http://example.com/path/to/page/?update=true will generate the message: “Updated.” in the notification center.

Arguments for Messages

When adding a message, there are arguments you can use to customize the functionality.

  1. error When set to true, this will add the error class to the message. Default: false
  2. fade When set to true, this will fade the message out after 3 seconds. You can change the pause time by setting fade to a number (in milliseconds). Default: false
  3. dismiss Allows a message to be dismissed by the user with a close button. Default: false
  4. event Allows message to be persistent, so that it shows up on each page load unless dismissed. The event tracks the message and updates the user’s meta when the message is dismissed, so it will stop showing up. Default: false
  5. page Lock a message to a specific page only. When page is set, a is_page($page) check will be performed before showing the message. Particularly useful when setting up query variable pairs. Default: false

Maually Generate Notifications

Add notifications manually anywhere before the show action.

if ( $something_happened ) :
    do_action( 'sewn/notifications/add', $message, $args );
endif;

Installation

  • Install plugin either via the WordPress.org plugin directory, or by uploading the files to your server.
  • Activate the plugin via the Plugins admin page.

Frequently Asked Questions

None yet.

Review feed

No reviews available

Screenshots

  1. A basic example of a notification out of the box.

    A basic example of a notification out of the box.

Changelog

1.1.1 – 2015-06-08

  • Launched in the repo