wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_toggletip › WordPress Function

Desde7.1.0
Obsoleton/a
› wp_get_toggletip ( $content, $args = array() )
Parâmetros: (2)
  • (string) $content Plain-text tooltip content. An empty value returns an empty string.
    Required: Yes
  • (array) $args { Optional. Arguments for building the tooltip. @type string $id Unique ID for the popover element. Default is a generated unique ID. @type string $button Existing `button` markup. Used instead of generated button. Default empty string. @type string $label Accessible label for the toggle button. Default 'Help', matching the default icon. Ignored for tooltips. @type string $close_label Accessible label for the close button. Default 'Close'. @type string $icon Dashicons icon class for the toggle button. Default 'dashicons-editor-help'. Should match the control's visible label. @type string $class Additional class(es) for the wrapping element. Default empty. }
    Required: No
    Padrão: array()
Retorna:
  • (string) Toggletip HTML markup, or an empty string when no content is provided.
Definido em:
Codex:

Retrieves the markup for an accessible toggle tip.

Returns a button and an action triggered toggle tip with $content.


Fonte

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