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: 7 242

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:wordpress-muplugin

2.2.3 2019-07-26 08:30 UTC

This package is auto-updated.

Last update: 2024-07-14 17:32:30 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');