Linux 软件免费装
Banner图

User Notifications

开发者 dogbytemarketing
更新时间 2026年11月27日 17:28
WordPress版本: 7.1
版权: GPLv3
版权网址: 版权信息

标签

marketing woocommerce alerts notifications user engagement

下载

1.0.0 1.0.2 1.0.1 1.0.3 1.0.4 1.1.0

详情介绍:

User Notifications lets you seamlessly inform WordPress & WooCommerce users about updates, sales, and more via the site navigation menu. You can add a notification menu easily by using the [notifications_dogbytemarketing] shortcode to inject a notification bell into your menu. The bell displays a badge when new notifications are available, ensuring users never miss an update. If you use something other than BootStrap icons, you can do [notifications_dogbytemarketing class="your-icon-class"] to use your own icons. You can also use the "class_container" attribute to add additional classes to the notification-container element. This plugin is ideal for websites and WooCommerce stores looking to improve user engagement and streamline notification delivery. Features Want to help? Submit a PR on Github. Roadmap For developers Other plugins can add their own notifications when User Notifications is active. If this plugin is not active, the filter never runs. The filter is user_notifications_notifications. The second argument is the context: admin_bar or frontend. Each item needs an id and a title. message and url are optional. Every notification can be dismissed. id is stored when the visitor dismisses the item, so keep it stable. Ids are saved with sanitize_key, so use lowercase letters, numbers, hyphens, and underscores. The admin bell is always in the WordPress admin toolbar, next to the username. The badge shows the number of admin_bar notifications that have not been marked read. When that number is zero, the bell stays and the badge is hidden. Marking one read, or marking all read, keeps the item in the panel. An optional time unix timestamp sets the relative time. If it is left out, the first time that id appears is stored and reused. Frontend items are added to the notification sidebar and the badge. Frontend notifications must be enabled in the plugin settings. Logged-in dismissals are saved on the user account. Guest dismissals are saved in the user_notifications_dismissed cookie. The Advanced setting Disable Third-Party Notifications turns this filter off for both contexts. add_filter('user_notifications_notifications', 'my_plugin_notifications', 10, 2); function my_plugin_notifications($notifications, $context) { if ('admin_bar' !== $context && 'frontend' !== $context) { return $notifications; } $notifications[] = array( 'id' => 'my-plugin-welcome', 'title' => 'Welcome', 'message' => 'You can dismiss this.', 'url' => 'https://example.com', ); return $notifications; } Return the item for admin_bar, frontend, or both. GDPR We are not lawyers and always recommend doing your own compliance research into third party plugins, libraries, ect, as we've seen other plugins not be in compliance with these regulations. This plugin uses the Bootstrap, BootStrap Icons, and SweetAlert2 3rd party libraries. These libraries are loaded locally to be compliant with data protection regulations. This plugin collects and stores certain data on your server to ensure proper functionality. This includes:

安装:

  1. Backup WordPress
  2. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly
  3. Activate the plugin through the 'Plugins' screen in WordPress

屏幕截图:

  • General Settings
  • WooCommerce Settings
  • Privacy Settings
  • Advanced Settings

更新日志:

1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0