<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v" -->

---
title: Introducing name and informational tool tips in...
description: WordPress 7.1 introduces two new PHP functions for rendering accessible tooltips in the admin interface: `wp_get_tooltip()` and `wp_get_toggletip()`. The first...
canonical: https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing name and informational tool tips in WordPress 7.1 | daily.dev
og:description: WordPress 7.1 introduces two new PHP functions for rendering accessible tooltips in the admin interface: `wp_get_tooltip()` and `wp_get_toggletip()`. The first...
og:url: https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v
og:image: https://api.daily.dev/og/posts/NZ3ngwQ9v.png
og:image:alt: Introducing name and informational tool tips in WordPress 7.1
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing name and informational tool tips in WordPress 7.1

**[Make WordPress Core](https://daily.dev/sources/wordpresscore)** · 5 min read · 1 upvotes · 0 comments

## Summary

WordPress 7.1 introduces two new PHP functions for rendering accessible tooltips in the admin interface: `wp_get_tooltip()` and `wp_get_toggletip()`. The first provides visible accessible names for icon-only controls (e.g., post meta box buttons), while the second adds a toggleable help popover for extended UI explanations (e.g., the login screen's 'Remember Me' checkbox). Both functions support optional arguments for custom icons, IDs, labels, and existing button markup. Required CSS is loaded globally; JavaScript must be enqueued manually for front-end use. The post includes full parameter documentation, HTML output examples, and accessibility guidance on when and why to use each function.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://make.wordpress.org/core/2026/08/03/introducing-name-and-informational-tool-tips-in-wordpress-7-1>

## Questions this post answers

### How do I use wp_get_tooltip() in WordPress 7.1 to add an accessible tooltip to an icon-only button?

Call wp_get_tooltip() with a plain-text content string as the first argument and an optional args array for id, icon, button markup, or class. It renders a span-based button with an aria-label matching the tooltip text and a popover element containing the visible tooltip text, using dashicons-editor-help as the default icon unless overridden.

_Developers polishing accessible WordPress admin UI can track core changes like this via daily.dev._

### What is the difference between wp_get_tooltip() and wp_get_toggletip() in WordPress 7.1?

wp_get_tooltip() only provides a visible accessible name for controls that lack one, such as icon-only buttons on post meta boxes, while wp_get_toggletip() adds a clickable button that opens a dialog with extended help text, as used for the 'Remember Me' checkbox on the login screen. Toggletips support label and close_label arguments that tooltips ignore.

_Teams building accessible admin controls can follow WordPress API additions like these through daily.dev._

### How do I enqueue the CSS and JavaScript needed for WordPress 7.1's new tooltip functions on the front-end?

Use wp_enqueue_style('wp-tooltip') to load the required CSS and wp_enqueue_script('wp-tooltip') to load the required JavaScript. By default the CSS loads globally in wp-admin, but the JavaScript only loads automatically on post meta boxes and the login screen, so front-end or other admin usage requires manually enqueuing both.

_Plugin developers wiring up new WordPress UI helpers can keep up with dev-notes like this on daily.dev._

## Similar posts on daily.dev

- [Perfectly Pointed Tooltips: A Foundation – Frontend Masters Blog](https://daily.dev/posts/perfectly-pointed-tooltips-a-foundation-frontend-masters-blog-yodltprsv) · Frontend Masters · 6 upvotes · 0 comments
- [Replacing Dashicons in the admin bar and menu](https://daily.dev/posts/replacing-dashicons-in-the-admin-bar-and-menu-pcbeyavxw) · Make WordPress Core · 11 upvotes · 0 comments
- [Getting Started With The Popover API — Smashing Magazine](https://daily.dev/posts/getting-started-with-the-popover-api-smashing-magazine-vjbltzl0j) · Smashing Magazine · 47 upvotes · 2 comments

---

Tags: [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing name and informational tool tips in WordPress 7.1","url":"https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v"},"datePublished":"2026-08-03T15:32:50.821Z","dateModified":"2026-09-13T19:06:02.696Z","description":"WordPress 7.1 introduces two new PHP functions for rendering accessible tooltips in the admin interface: `wp_get_tooltip()` and `wp_get_toggletip()`. The first...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6ad4f5b66be737a1618019916626b1bd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Make WordPress Core","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Make WordPress Core","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/892d1a79e30e4e8a911b5726c6fb1a06","url":"https://daily.dev/sources/wordpresscore"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"php,wordpress,accessibility","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Make WordPress Core","item":"https://daily.dev/sources/wordpresscore"},{"@type":"ListItem","position":3,"name":"Introducing name and informational tool tips in WordPress 7.1"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-name-and-informational-tool-tips-in-wordpress-7-1-nz3ngwq9v#faq","mainEntity":[{"@type":"Question","name":"How do I use wp_get_tooltip() in WordPress 7.1 to add an accessible tooltip to an icon-only button?","acceptedAnswer":{"@type":"Answer","text":"Call wp_get_tooltip() with a plain-text content string as the first argument and an optional args array for id, icon, button markup, or class. It renders a span-based button with an aria-label matching the tooltip text and a popover element containing the visible tooltip text, using dashicons-editor-help as the default icon unless overridden. Developers polishing accessible WordPress admin UI can track core changes like this via daily.dev."}},{"@type":"Question","name":"What is the difference between wp_get_tooltip() and wp_get_toggletip() in WordPress 7.1?","acceptedAnswer":{"@type":"Answer","text":"wp_get_tooltip() only provides a visible accessible name for controls that lack one, such as icon-only buttons on post meta boxes, while wp_get_toggletip() adds a clickable button that opens a dialog with extended help text, as used for the 'Remember Me' checkbox on the login screen. Toggletips support label and close_label arguments that tooltips ignore. Teams building accessible admin controls can follow WordPress API additions like these through daily.dev."}},{"@type":"Question","name":"How do I enqueue the CSS and JavaScript needed for WordPress 7.1's new tooltip functions on the front-end?","acceptedAnswer":{"@type":"Answer","text":"Use wp_enqueue_style('wp-tooltip') to load the required CSS and wp_enqueue_script('wp-tooltip') to load the required JavaScript. By default the CSS loads globally in wp-admin, but the JavaScript only loads automatically on post meta boxes and the login screen, so front-end or other admin usage requires manually enqueuing both. Plugin developers wiring up new WordPress UI helpers can keep up with dev-notes like this on daily.dev."}}]}
```

