PHP code example of digitoimistodude / air-notifications
1. Go to this page and download the library: Download digitoimistodude/air-notifications 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/ */
digitoimistodude / air-notifications example snippets
add_filter( 'air_notifications_locations', function( $locations ) {
$locations['your-location'] = 'Your location';
return $locations;
} );
do_action( 'air_notifications_show_notifications', 'your-location' );
add_filter( 'air_notifications_disable_css', '__return_true' );