zarei-dev / wp-better-notice
Better Notice for WordPress
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zarei-dev/wp-better-notice
Requires
- php: ^7.0 || ^8.0
This package is auto-updated.
Last update: 2025-09-14 06:33:07 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' ); }