rockschtar/wordpress-notices

WordPress Must Use Plugin that helps to display notices in wordpress admin area. Developed for usage with composer based based WordPress projects (roots/bedrock or johnpbloch/wordpress).

Installs: 4 778

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

2.2.3 2019-07-26 08:30 UTC

This package is auto-updated.

Last update: 2022-06-26 21:19:53 UTC


README

rockschtar/wordpress-notices

Description

WordPress Must Use Plugin that helps to display notices in wordpress admin area. Developed for usage with composer based WordPress projects (roots/bedrock or johnpbloch/wordpress).

Requirements

Install

composer require rockschtar/wordpress-notices

License

rockschtar/wordpress-notices is open source and released under MIT license. See LICENSE.md file for more info.

Usage

php

add_action('admin_init', function() {
    add_notice_success('Hello World');
});

javascript

RSAdminNotices.addError('This is a error');
RSAdminNotices.addSuccess('This is a success');
RSAdminNotices.addInfo('This is a info');
RSAdminNotices.addWarning('This is a warning');