Add version details to the WordPress admin bar for instant visibility while navigating any page in WP-Admin.

Admin Bar

The Admin Bar integration adds one item to the WordPress toolbar (the admin bar). Its label is your full version string, and it opens a Copy as Markdown option, giving you instant access to your technical stack without scrolling to the footer.

What It Displays

When enabled, a node is added to the right side of the admin bar (the top-secondary group). Its label is the version string itself, for example:

WordPress 6.9.4 | PHP 8.3.14 | Web Server nginx/1.24.0 | MySQL 8.0.36 | Mem 24 MB of 256 MB (9.4%)

The label shows, in order:

  • WordPress version
  • PHP version
  • Web Server software
  • MySQL version
  • Mem: PHP memory usage and the memory limit, when Show Memory & Server IP is on (the default)
  • PHP past EOL or PHP EOL in N days, when your PHP version is past its end of life or within 365 days of it

Hovering or clicking the node reveals one item, Copy as Markdown. It copies a Markdown table of your stack (WordPress, PHP, MySQL, Web Server, PHP and WordPress memory limits, locale and multisite) to the clipboard, ready to paste into a support ticket. The item briefly reads Copied! to confirm.

The admin bar never shows the server IP or an update link. Those appear in the admin footer.

Who Sees It

  • Only logged-in users whose role is allowed: administrators by default, or the roles you choose under Access Control (Agency).
  • The item appears in WP-Admin and on the front end of your site whenever WordPress shows the toolbar. On the front end, the toolbar shows only when the user's profile setting Toolbar: Show Toolbar when viewing site is on.
  • On screens 782px wide or narrower, WordPress hides every toolbar item except its own, so the Version Info item appears only on wider screens.

Enabling / Disabling

The Admin Bar display is disabled by default. To enable it:

  1. Navigate to Settings > Version Info > General.
  2. Check Show Version Info in Admin Bar.
  3. Click Save Changes.

Customizing Admin Bar Nodes

Developers can modify the admin bar nodes using the version_info_admin_bar_nodes filter. This allows you to add, remove, or reorder the nodes displayed:

add_filter( 'version_info_admin_bar_nodes', 'customize_admin_bar_nodes' );

function customize_admin_bar_nodes( $nodes ) {
    // Add a custom node next to the Version Info item (right side of the toolbar)
    $nodes['custom-server-info'] = array(
        'id'     => 'custom-server-info',
        'parent' => 'top-secondary',
        'title'  => esc_html( 'Hostname: ' . gethostname() ),
    );
    return $nodes;
}

The array is keyed by node id: version_info_admin_bar (the version string), version_info_copy_md (Copy as Markdown), and version_info_environment when the PRO environment badge is on. The filter runs for allowed users even when Show Version Info in Admin Bar is off, so nodes you add appear regardless of that setting. Node titles are printed as HTML, so escape dynamic values.

When using the PRO plan's Environment Indicators feature, the admin bar can also display a color-coded environment badge and an optional colored top border to indicate whether you're on a Production, Staging, or Development site. Both are separate checkboxes on the Environment tab, off by default, and the badge works even when Show Version Info in Admin Bar is off. See the Environment Indicators documentation for details.

environment-indicators.md

hooks-and-filters.md