Air notifications
Easy way to create and manage public notifications at the site.
by Digitoimisto Dude · github.com/digitoimistodude/air-notifications · website
★ 4stars
61composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/digitoimistodude/air-notifications/archive/refs/heads/master.zipAlso on Packagist as digitoimistodude/air-notifications:
composer require digitoimistodude/air-notificationsFrom the readme
Air notifications
You need Advanced Custom Fields PRO plugin installed to use this plugin.
Creates a custom post type for notifications and adds following ACF fields for it:
Start time
End time
Content of the notification
Allow closing ( used to check if closing button needs to be added )
Location ( to have different locations for the notifications on the same page )
Show on page ( specifying certain pages to show the notification on. Notification will be shown on all pages if nothing is selected )
Registering a notification locations
By default Air notifications has one default notification locations set. You might want to change its name, since most likely wont match your use case( using Finnish and location at top of the page ). You can also add more locations if you need them.
Adding/modifying notification locations is done using filter airnotificationslocations.
Adding notifications to templates
In order to show notifications on your page, you need to call them in your template. This is done by adding the following action to your template. The action takes notification location as a parameter.
Disabling default notification css
If you want to use the default no
Read the full README on GitHub →