wordpruss/notices

An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.

Installs: 25

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/wordpruss/notices

dev-master 2017-09-06 05:48 UTC

This package is not auto-updated.

Last update: 2025-10-23 13:08:51 UTC


README

An Object-Oriented Wrap for notices displayed near the top of admin pages on WordPress.

Installation

composer require wordpruss/notices

Basic usage

Notices are used to show a User some information. They have four types: success, warning, info or error. These messages will be displayed at the top of the WordPress admin area. Notices can be used anywhere in the plugin by referencing Notify

<?php
use WordPruss\Notices\Notify;

Notify::error('Test an error notice');
Notify::info('Test an info notice');
Notify::warning('Test a warning notice');
Notify::success('Test a success notice');

// Hook up all the notices
Notify::hook();