wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_tooltip › WordPress Function

Since7.1.0
Deprecatedn/a
wp_get_tooltip ( $content, $args = array() )
Parameters: (2)
  • (string) $content Plain-text tooltip content. An empty value returns an empty string.
    Required: Yes
  • (array) $args { Optional. Arguments for building the tooltip. @type string $id Unique ID for the popover element. Default is a generated unique ID. @type string $label Not used for tooltips. @type string $close_label Not used for tooltips. @type string $icon Dashicons icon class for the toggle button. Default 'dashicons-editor-help'. Should match the control's visible label. @type string $class Additional class(es) for the wrapping element. Default empty. }
    Required: No
    Default: array()
Returns:
  • (string) Tooltip HTML markup, or an empty string when no content is provided.
Defined at:
Codex:

Retrieves the markup for an accessible tooltip.

Returns a button with an accessible name popover.


Source

function wp_get_tooltip( $content, $args = array() ) {
	$args['type'] = 'tooltip';
	return wp_get_tooltip_helper( $content, $args );
}