wp_get_tooltip_helper( string $content, array $args = array() ): string
- Since
- 7.1.0
- Source
wp-includes/general-template.php:467
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 IDUnique ID for the popover element.$buttonstringdefault: empty stringExistingbuttonoramarkup. Used instead of generated button.$labelstringdefault: 'Help', matching the default icon. Ignored for tooltipsAccessible label for the toggle button.$close_labelstringdefault: 'Close'Accessible label for the close button.$iconstringdefault: 'dashicons-editor-help'. Should match the control's visible labelDashicons icon class for the toggle button.$classstringdefault: emptyAdditional class(es) for the wrapping element.$typestringdefault: 'tooltip'Type of tooltip: eithertooltiportoggletip.
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
- Scaling
- Constant
- Instructions
- 113–176
- Plugin surface
- None
- Called by
- 2
Touches nothing outside its own arguments.
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 216.
Nothing here hands control to plugin code.
2 places in core call this, so the cost is paid more often than your own code shows.
What it touches
- hookthird-party callbacks
apply_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.
| When | Instructions | Calls it makes |
|---|---|---|
$content !== "" && !$args && $tag !== false | 113–124 | wp_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 !== false | 117–128 | wp_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 !== false | 118–129 | wp_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 !== false | 118–129 | wp_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 !== false | 119–130 | wp_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 !== false | 122–133 | wp_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 !== false | 122–133 | wp_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 !== "" && !$args | 123–134 | wp_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 !== false | 123–134 | wp_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 !== false | 123–134 | wp_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 !== false | 124–135 | wp_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–132 | wp_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 !== false | 124–135 | wp_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 !== "" && !$args | 127–138 | wp_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 !== false | 127–138 | wp_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 !== false | 127–138 | wp_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 !== "" && !$args | 128–139 | wp_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 !== "" && !$args | 128–139 | wp_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 !== false | 128–139 | wp_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–136 | wp_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 !== false | 128–139 | wp_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 !== "" && !$args | 129–140 | wp_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–137 | wp_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 !== false | 129–140 | wp_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–137 | wp_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–138 | wp_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 !== false | 131–142 | wp_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 !== "" && !$args | 132–143 | wp_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 !== "" && !$args | 132–143 | wp_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 !== false | 132–143 | wp_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 === false | 133–140 | wp_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 !== "" && !$args | 133–144 | wp_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 !== "" && !$args | 133–144 | wp_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 !== false | 133–144 | wp_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–141 | wp_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 !== false | 133–144 | wp_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–141 | wp_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 !== "" && !$args | 134–145 | wp_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–142 | wp_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 !== "" && !$args | 134–145 | wp_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–142 | wp_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–142 | wp_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–143 | wp_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–143 | wp_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 !== false | 136–147 | wp_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 === false | 137–144 | wp_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 !== "" && !$args | 137–148 | wp_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 !== "" && !$args | 137–148 | wp_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 !== false | 137–148 | wp_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 === false | 138–145 | wp_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 === false | 138–144 | wp_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 !== "" && !$args | 138–149 | wp_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–146 | wp_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 !== "" && !$args | 138–149 | wp_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–146 | wp_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 !== false | 138–149 | wp_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–146 | wp_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 === false | 139–146 | wp_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–147 | wp_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 !== "" && !$args | 139–150 | wp_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–147 | wp_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–147 | wp_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–147 | wp_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–148 | wp_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–148 | wp_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 !== "" && !$args | 141–152 | wp_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 === false | 142–149 | wp_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 === false | 142–148 | wp_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 !== "" && !$args | 142–153 | wp_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–150 | wp_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 !== false | 142–153 | wp_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 === false | 143–150 | wp_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 === false | 143–149 | wp_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 !== "" && !$args | 143–154 | wp_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–151 | wp_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 !== "" && !$args | 143–154 | wp_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–151 | wp_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–151 | wp_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 === false | 144–151 | wp_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–148 | wp_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 === false | 144–150 | wp_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–152 | wp_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–152 | wp_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–152 | wp_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–152 | wp_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–153 | wp_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–153 | wp_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 !== "" && !$args | 146–157 | wp_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 === false | 147–154 | wp_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 === false | 147–153 | wp_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 !== "" && !$args | 147–158 | wp_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–155 | wp_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 === false | 148–155 | wp_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–152 | wp_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 === false | 148–154 | wp_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–156 | wp_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 !== "" && !$args | 148–159 | wp_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–156 | wp_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–156 | wp_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–153 | wp_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 === false | 149–155 | wp_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–152 | wp_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–157 | wp_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–157 | wp_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–157 | wp_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–154 | wp_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–158 | wp_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 === false | 151–158 | wp_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 === false | 152–158 | wp_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–160 | wp_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 !== "" && !$args | 152–163 | wp_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 === false | 153–160 | wp_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–157 | wp_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 === false | 153–159 | wp_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–156 | wp_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–161 | wp_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–161 | wp_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–158 | wp_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–157 | wp_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–162 | wp_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–162 | wp_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–159 | wp_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–158 | wp_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 === false | 156–162 | wp_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 === false | 157–164 | wp_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–165 | wp_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–162 | wp_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 === false | 158–164 | wp_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–161 | wp_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–166 | wp_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–163 | wp_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–162 | wp_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–167 | wp_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–163 | wp_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–166 | wp_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 === false | 162–168 | wp_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–166 | wp_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–171 | wp_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–168 | wp_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–167 | wp_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–170 | wp_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–172 | wp_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–172 | wp_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–176 | wp_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
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 215 | 113–175 | 17 | 1 fewer instruction than PHP 8.5 |
| 8.5 | 216 | 113–176 | 17 | |
| 8.4 | 216 | 113–176 | 17 | 5 fewer instructions than PHP 8.3 |
| 8.3 | 221 | 115–181 | 17 | |
| 8.2 | 221 | 115–181 | 17 | |
| 8.1 | 221 | 115–181 | 17 | 5 fewer instructions than PHP 7.4 |
| 7.4 | 226 | 118–183 | 17 |
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
- wp_unique_id()Gets unique ID.
- __()Retrieves the translation of $text.
- wp_parse_args()Merges user defined arguments into defaults array.
- wp_strip_all_tags()Properly strips all HTML tags including 'script' and 'style'.
- esc_attr()Escaping for HTML attributes.
- esc_html()Escaping for HTML blocks.
- WP_HTML_Tag_Processor::__construct()Constructor.
Used by · 2
- wp_get_toggletip()Retrieves the markup for an accessible toggle tip.
- wp_get_tooltip()Retrieves the markup for an accessible tooltip.
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.