Real-time Notifications Shortcodes

Overview

This document provides instructions on how to use shortcodes and patterns of the Real-time Notifications extension.

Contents

Shortcodes

You may use shortcodes in the posts content and widgets

[ultimatemember_notifications]

Usage: Show a list of notifications for current user

Attributes: none

[ultimatemember_notifications_button]

Usage: Show button that open/close "Notifications" sidebar

Default attributes:

  • static => 1,                       // button position is fixed (0) or static (1)
  • hide_if_no_unread => 1, // show button always (0) or if there are unread notifications (1)

[ultimatemember_notification_count]

Usage: Show a number of unread notifications

Attributes: none

Menu patterns

You may use patterns in the menu title

{um_notifications_button}

Usage: Show button that open/close "Notifications" sidebar

Example