WordPress at Your Fingertips
function is not described

WC_Settings_API::get_tooltip_html() public WC 1.0

Get HTML for tooltips.

{} It's a method of the class: WC_Settings_API{}

No Hooks.

Return

String.

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->get_tooltip_html( $data );
$data(array) (required)
Data for the tooltip.

Code of WC_Settings_API::get_tooltip_html() WC 5.5.2

<?php
public function get_tooltip_html( $data ) {
	if ( true === $data['desc_tip'] ) {
		$tip = $data['description'];
	} elseif ( ! empty( $data['desc_tip'] ) ) {
		$tip = $data['desc_tip'];
	} else {
		$tip = '';
	}

	return $tip ? wc_help_tip( $tip, true ) : '';
}