Real-time Notifications Shortcodes

Overview

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

Ultimate Member uses WordPress shortcodes to allow users to perform certain actions as well as display forms and templates. You may use shortcodes in the posts(page) content and text widgets.

Contents

Shortcodes

You may use shortcodes in the posts(page) content and text 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 hide if there are no 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