Shop
Showing the single result
function balance_shortcode() { $user_id = get_current_user_id(); $saldo = get_field('wallet_balance', 'user_' . $user_id); return '
Your balance: €' . ($balance ? $balance : '0') . '
'; } add_shortcode('show_balance', 'balance_shortcode'); Skip to contentShowing the single result