Skip to content

Instantly share code, notes, and snippets.

@5ally
Created June 24, 2019 07:39
Show Gist options
  • Save 5ally/df333b4a89d635688a0225c0e0206d33 to your computer and use it in GitHub Desktop.
Save 5ally/df333b4a89d635688a0225c0e0206d33 to your computer and use it in GitHub Desktop.
<?php // File: wp-content/themes/your-theme/woocommerce/myaccount/account-funds.php
/**
* My Account > Account Funds page
*
* @version 2.0.12
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
wc_print_notices();
?>
<div class="woocommerce-MyAccount-account-funds">
<p>
<?php printf( __( 'You currently have <strong>%s</strong> worth of funds in your account.', 'woocommerce-account-funds' ), $funds ); ?>
</p>
<?php
// If the current user is **not** a "customer", show the topup form.
if ( ! empty( $topup ) && ! current_user_can( 'customer' ) ) {
echo $topup;
}
?>
<?php echo $products; ?>
<?php echo $recent_deposits; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment