Reply To: Change/delete the icon wowallet2020-04-28T22:22:10+05:30

Home Forums Core Change/delete the icon wowallet Reply To: Change/delete the icon wowallet

testtopro
Participant
Post count: 2

use this and use [woo-mini-wallet] as a shortcode to show balance without an icon.

function woo_mini_wallet_callback() {
if (!function_exists(‘woo_wallet’) || !is_user_logged_in()) {
return ”;
}
ob_start();
$title = __(‘Current wallet balance’, ‘woo-wallet’);
$mini_wallet = ‘‘;
$mini_wallet .= woo_wallet()->wallet->get_wallet_balance(get_current_user_id());
$mini_wallet .= ‘
‘;
echo $mini_wallet;
return ob_get_clean();
}
add_shortcode(‘woo-mini-wallet’, ‘woo_mini_wallet_callback’);