Toolbar Shortcodes

In order to display certain dynamic information in the toolbar we need to implement variables in the form of custom shortcodes. 

Here are the shortcodes available for the toolbar module:

  • {{site-name}} - The site name as set in Settings > General.
  • {{updates-number}} - Displays the number of items that have updates available.
  • {{comments-number}} - Displays the number of comments that are awaiting moderation.
  • {{post-type}} - The post type current being displayed.
  • {{display-name}} - The display name of the current user as set in Users > Your Profile.
  • {{avatar}} - The gravatar associated with the current user. A silhouette is used if no gravatar is present.

You can enter any of these shortcodes in the title field of a toolbar menu item to display the required information in your menu.