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’);
Please use mini wallet from Appearance > Menus > WooCommerce endpoints section.
Author
Posts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
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