Plugin info

Total downloads: 2,786
Active installs: 10
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/9/2014 (4159 days ago)
Added to WordPress: 8/9/2014 (11 years old)
Minimum WordPress version: 3.0
Tested up to WordPress version: 3.9.40
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4159 days ago • 1 reviews

22/100

Is Notices API abandoned?

Possibly abandoned (last update 4159 days ago).

Compatibility

Requires WordPress: 3.0
Tested up to: 3.9.40
Requires PHP: f

Similar & Alternatives

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

Courier Notices
Rating 5.0/5 (1 reviews)Active installs 40
WP-Announcements
Rating 0.0/5 (0 reviews)Active installs 40
Alerts for Beaver Builder
Rating 5.0/5 (3 reviews)Active installs 500
Scheduled Announcements Widget
Rating 3.8/5 (5 reviews)Active installs 100
Advanced Notifications
Rating 5.0/5 (3 reviews)Active installs 100

Description

This is a very simple WordPress plugin for creating frontend notices server side or client side. There are 4 notice types by default success, error, warning, general or you can create custom notice types. Server side notices are stored in the session until displayed.

This plugin hopes to one day solve the problem of complex WordPress sites with multiple plugins all having their own Notices that all require styling.

But for now, the Notices API is useful tool for developers creating custom functionality in their theme.

Server Side Usage


Client Side Usage

jQuery(document).ready(function($){

    $.WP_Notices.success( title,message, scroll_to, timer, callback );
    $.WP_Notices.error( title, message, scroll_to, timer, callback );
    $.WP_Notices.general( title, message, scroll_to, timer, callback );
    $.WP_Notices.warning( title, message, scroll_to, timer, callback );

    // Custom type
    $.WP_Notices.render_notice( type, title, message, scroll_to, timer, callback );

    // Using the callback parameter
    $.WP_Notices.warning( 'Form Error', 'Invalid form input.', false, 3000, function( $notice ) {
        console.log( $notice );
    });

});

Options

add_filter( 'notice_api_options', 'customize_notice_options' );

function customize_notice_options( $options )
{
    $options = array(
        'prepend_selector' => '#content',
        'container_class' => 'notices-container',
        'before_title' => '',
        'after_title' => ': ',
        'scrolling_speed' => 500,
    );
    return $options;
}

Installation

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create some notices in your code!

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0

  • First version pushed to WordPress plugin repository.