PHP code example of zarei-dev / wp-better-notice
1. Go to this page and download the library: Download zarei-dev/wp-better-notice library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zarei-dev / wp-better-notice example snippets
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' );
}