Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 542 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 542 Bytes

wp-better-notice

Simple Syntax for creating a WordPress notice.

Install

You'll need to use Composer autoloader. This package use PSR-4.

composer require zarei-dev/wp-better-notice

Examples

BetterNotice::Success( 'Success message' );
BetterNotice::Error( 'Error message' );
BetterNotice::Warning( 'Warning message' );
BetterNotice::Info( 'Info message' );
if ( email_validation() ) {
  BetterNotice::Success( 'Profile updated.' );
} else {
  BetterNotice::Error( 'You should enter a valid email' );
}