Skip to content

zarei-dev/wp-better-notice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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' );
}