WP Manifestindependent plugin directory
manifest / utilities / air-notifications

Air notifications WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Simple notification banner plugin for WordPress.

★ 5stars
61composer installs
1.0.8latest · 5mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/digitoimistodude/air-notifications/archive/refs/heads/master.zip

On Packagist as digitoimistodude/air-notifications:

composer require digitoimistodude/air-notifications
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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 air_notifications_locations.

  add_filter( 'air_notifications_locations', function( $locations ) {
    $locations['your-location'] = 'Your location';

    return $locations;
  } );

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.

  do_action( 'air_notifications_show_notifications', 'your-location' );

Disabling default notification css

If you want to use the default notification template, but dont want to load its css, you can disable it.

  add_filter( 'air_notifications_disable_css', '__return_true' );

Custom notification templates

Default notification template can be replaced by your own custom one. You will need to name it like notification-template-your-location.php. So if you are replacing the default location you will need to create file notification-template-default.php. These templates need to be saved in yourtheme/templates.

In these templates you have access to the notification data by $notification variable.

If you want to add the ability to dismiss the notification you will need to make sure you do 3 things.

  • Make sure your main wrapper by default has display: none, this to prevent the notification from appearing and then disappearing if it had already been closed before.
  • Add class air-notification to your main wrapper
  • Add data attribute data-notification-id to your main wrapper and your button. Value for this should be unique since it will be saved in the users localstorage, when closing a notification. $notification['guid'] is created just for this use.

Also note that the notifications have an option is_dismissable, this can be used to check if your notification needs the button at all.

Releases

9 releases.

Tag
Published
1.0.8 latest
Apr 28, 2026 5mo ago
Aug 8, 2025 1 year ago
Aug 7, 2023 3 years ago
Mar 2, 2023 3 years ago
Mar 2, 2023 3 years ago
Mar 2, 2023 3 years ago
Feb 20, 2023 3 years ago
Feb 20, 2023 3 years ago
Aug 19, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Air notifications 1.0.7 · audited by WP Registry

No security issues found.

Audited release
1.0.7
Findings
none
Worst severity
—
Content hash
c9de811d39be73591d315a58…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.