zarei-dev/wp-better-notice

Better Notice for WordPress

v1.0.0 2022-06-13 23:30 UTC

This package is auto-updated.

Last update: 2024-11-14 04:38:59 UTC


README

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