WordPress at Your Fingertips
function is not described

WC_Admin_Report::get_currency_tooltip() public WC 1.0

Return currency tooltip JS based on WooCommerce currency position settings.

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

No Hooks.

Return

String.

Usage

$WC_Admin_Report = new WC_Admin_Report();
$WC_Admin_Report->get_currency_tooltip();

Code of WC_Admin_Report::get_currency_tooltip() WC 5.8.0

public function get_currency_tooltip() {
	switch ( get_option( 'woocommerce_currency_pos' ) ) {
		case 'right':
			$currency_tooltip = 'append_tooltip: "' . get_woocommerce_currency_symbol() . '"';
			break;
		case 'right_space':
			$currency_tooltip = 'append_tooltip: " ' . get_woocommerce_currency_symbol() . '"';
			break;
		case 'left':
			$currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . '"';
			break;
		case 'left_space':
		default:
			$currency_tooltip = 'prepend_tooltip: "' . get_woocommerce_currency_symbol() . ' "';
			break;
	}

	return $currency_tooltip;
}