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’);
Author
Posts
Viewing 1 post (of 1 total)
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy