Reply To: mini-wallet2021-03-28T18:42:26+05:30

Home Forums Core mini-wallet Reply To: mini-wallet

kdr2000
Participant
Post count: 3

I found the following code, but i do not know how to edit it to change the url of the link
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 .= ‘ ‘;
$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’);

WhatsApp