-
-
Save 5ally/df333b4a89d635688a0225c0e0206d33 to your computer and use it in GitHub Desktop.
See https://stackoverflow.com/a/56731467/9217760 for details.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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