wppaste
WordPress

wp_get_tooltip_helper( string $content, array $args = array() ): string

Since
7.1.0
Source
wp-includes/general-template.php:467
Retrieves the markup for an accessible tooltip or toggletip.

Description

Returns a button and either a hover/focus triggered tooltip popover or an action triggered toggle tip. Enqueue the wp-tooltip style and script where it is used.
Tooltips are used to show the accessible name of a control.
Toggletips are used for longer supporting text explaining context.

Compatibility

WordPress
since 7.1.0
PHP
7.4–8.6-dev
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in 1 of the 5 tracked releases, added in 7.1.0, and compiles on PHP 7.4 through 8.6-dev.

Parameters

$contentstring
Plain-text tooltip content. An empty value returns an empty string.
$argsarrayoptional
Arguments for building the tooltip.Default: array()
  • $idstringdefault: is a generated unique ID

    Unique ID for the popover element.
  • $buttonstringdefault: empty string

    Existing button or a markup. Used instead of generated button.
  • $labelstringdefault: 'Help', matching the default icon. Ignored for tooltips

    Accessible label for the toggle button.
  • $close_labelstringdefault: 'Close'

    Accessible label for the close button.
  • $iconstringdefault: 'dashicons-editor-help'. Should match the control's visible label

    Dashicons icon class for the toggle button.
  • $classstringdefault: empty

    Additional class(es) for the wrapping element.
  • $typestringdefault: 'tooltip'

    Type of tooltip: either tooltip or toggletip.

Return value

string
Tooltip HTML markup, or an empty string when no content is provided.

Performance profile

How much work a call to wp_get_tooltip_helper() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Trivial

Touches nothing outside its own arguments.

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
113–176

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 216.

Plugin surface
None

Nothing here hands control to plugin code.

Called by
2

2 places in core call this, so the cost is paid more often than your own code shows.

What it touches

  • hookthird-party callbacksapply_filters()one call below wp_get_tooltip_helper()

Further down the call graph this can also reach option, cache, serialize, query and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 144 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost wp_get_tooltip_helper() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
$content !== "" && !$args && $tag !== false113–124wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false117–128wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false118–129wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false118–129wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false119–130wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false122–133wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false122–133wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args123–134wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false123–134wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false123–134wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false124–135wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"124–132wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
132 further outcomes, up to 176 instructions
$content !== "" && !$args && $tag !== false124–135wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args127–138wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false127–138wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false127–138wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args128–139wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args128–139wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false128–139wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"128–136wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false128–139wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args129–140wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"129–137wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false129–140wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"129–137wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"130–138wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false131–142wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args132–143wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args132–143wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false132–143wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false133–140wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args133–144wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args133–144wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false133–144wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"133–141wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false133–144wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"133–141wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args134–145wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"134–142wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args134–145wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"134–142wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"134–142wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"135–143wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"135–143wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false136–147wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false137–144wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args137–148wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args137–148wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false137–148wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false138–145wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false138–144wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args138–149wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"138–146wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args138–149wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"138–146wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false138–149wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"138–146wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false139–146wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"139–147wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args139–150wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"139–147wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"139–147wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"139–147wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"140–148wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"140–148wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args141–152wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false142–149wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false142–148wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args142–153wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"142–150wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false142–153wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false143–150wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false143–149wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args143–154wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"143–151wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args143–154wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"143–151wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"143–151wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false144–151wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"144–148wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false144–150wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"144–152wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"144–152wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"144–152wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"144–152wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"145–153wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"145–153wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args146–157wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false147–154wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false147–153wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args147–158wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"147–155wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false148–155wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"148–152wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false148–154wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"148–156wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args148–159wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"148–156wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"148–156wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"149–153wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false149–155wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"149–152wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"149–157wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"149–157wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"149–157wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"150–154wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"150–158wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false151–158wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false152–158wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"152–160wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args152–163wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false153–160wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"153–157wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false153–159wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"153–156wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"153–161wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag !== false && $tag === "button"153–161wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"154–158wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"154–157wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"154–162wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"154–162wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"155–159wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"155–158wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false156–162wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false157–164wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"157–165wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"158–162wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false158–164wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"158–161wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"158–166wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"159–163wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"159–162wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === "button"159–167wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"160–163wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"162–166wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false162–168wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"163–166wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === "button"163–171wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"164–168wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"164–167wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"167–170wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"168–172wp_unique_id(), __(), __(), wp_parse_args(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"169–172wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()
$content !== "" && !$args && $tag === false && $tag === "button"173–176wp_unique_id(), __(), __(), wp_parse_args(), wp_strip_all_tags(), id(), ->next_tag(), ->next_tag(), ->next_tag(), ->get_attribute(), ->set_attribute(), ->add_class(), ->set_attribute(), ->set_attribute(), ->next_tag(), ->set_attribute(), ->set_attribute(), ->get_updated_html(), esc_attr(), esc_attr(), esc_attr(), esc_attr(), esc_html(), esc_attr(), sprintf()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev215113–175171 fewer instruction than PHP 8.5
8.5216113–17617
8.4216113–176175 fewer instructions than PHP 8.3
8.3221115–18117
8.2221115–18117
8.1221115–181175 fewer instructions than PHP 7.4
7.4226118–18317

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Uses · 7

Used by · 2

Source code

function wp_get_tooltip_helper( $content, $args = array() ) {	$content = trim( (string) $content ); 	if ( '' === $content ) {		return '';	} 	$defaults = array(		'id'          => wp_unique_id( 'wp-tooltip-' ),		'button'      => '',		'label'       => __( 'Help' ),		'close_label' => __( 'Close' ),		'icon'        => 'dashicons-editor-help',		'class'       => '',		'type'        => 'tooltip',	); 	$args = wp_parse_args( $args, $defaults ); 	$classes = ( 'tooltip' === $args['type'] ) ? 'wp-tooltip wp-is-tooltip' : 'wp-tooltip wp-is-toggletip';	if ( '' !== $args['class'] ) {		$classes .= ' ' . $args['class'];	} 	$icon = ( $args['icon'] ) ? trim( $args['icon'] ) : $defaults['icon'];	$id   = ( $args['id'] ) ? $args['id'] : $defaults['id']; 	// Tooltips use the content as the accessible name; toggletips use the label.	$label = ( 'tooltip' === $args['type'] ) ? wp_strip_all_tags( $content, true ) : $args['label']; 	/*	 * The generated button is a plain skeleton. Every dynamic attribute is	 * added through the tag processor below, so caller-supplied markup is	 * never scanned or substituted and a percent sign in custom markup,	 * such as a percent-encoded URL, is never treated as a conversion	 * specification.	 */	$default_button = '<button type="button"><span></span></button>'; 	$is_default = ! $args['button'];	$button     = ( $args['button'] ) ? $args['button'] : $default_button; 	// The accepted root element is a `button`, or an `a` for tooltips.	$tag       = false;	$processor = new WP_HTML_Tag_Processor( $button );	if ( true === $processor->next_tag( 'button' ) ) {		$tag = 'button';	} else {		$processor = new WP_HTML_Tag_Processor( $button );		if ( 'tooltip' === $args['type'] && true === $processor->next_tag( 'a' ) ) {			$tag = 'a';		}	} 	if ( false === $tag ) {		// Button HTML passed was not valid. Reset to default.		$is_default = true;		$button     = $default_button;		$processor  = new WP_HTML_Tag_Processor( $button );		$processor->next_tag( 'button' );		$tag = 'button';	} 	/*	 * Attributes that apply to every accepted button are added in one pass.	 * Attributes that name the control are only added when the caller's	 * markup did not already provide them.	 */	if ( null === $processor->get_attribute( 'aria-label' ) ) {		$processor->set_attribute( 'aria-label', $label );	}	$processor->add_class( 'wp-tooltip__toggle' );	if ( 'button' === $tag && 'tooltip' !== $args['type'] ) {		$processor->set_attribute( 'popovertarget', $id );		$processor->set_attribute( 'aria-haspopup', 'dialog' );	} 	// The generated button also carries the dashicon on its inner span.	if ( $is_default && true === $processor->next_tag( 'span' ) ) {		$processor->set_attribute( 'class', 'dashicons ' . $icon );

Changelog

Introduced in 7.1.0.

Signature, return type and hooks compared across 1 parsed release.

About this page

Parsed data
Generated from the wordpress-develop 7.1.3 tag, from src/wp-includes/general-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.