Changeset 1401571
- Timestamp:
- 04/21/2016 08:10:06 PM (10 years ago)
- Location:
- wc-wallet
- Files:
-
- 1 deleted
- 4 edited
-
tags/1.0.1/includes/functions.php (modified) (1 diff)
-
tags/1.0.1/readme.txt (modified) (1 diff)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/mail (deleted)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-wallet/tags/1.0.1/includes/functions.php
r1401564 r1401571 877 877 } 878 878 879 add_shortcode('wc_wallet_show_balance', 'wc_wallet_show_balance'); 880 881 function wc_wallet_show_balance(){ 882 if( is_user_logged_in() ){ 883 echo "Available Credits: ".wc_price(get_user_meta( get_current_user_id(), "wc_wallet", true )); 884 }else{ 885 echo "You need to login to see your credits"; 886 } 887 } 888 879 889 } 880 890 ?> -
wc-wallet/tags/1.0.1/readme.txt
r1401564 r1401571 26 26 * Send Cancel Order Request and let the admin refund the amount as Credits. 27 27 * Credits restrictions for users. 28 * To show users their balance, use `[wc_wallet_show_balance]` shortcode. 28 29 29 30 == Installation == -
wc-wallet/trunk/includes/functions.php
r1401564 r1401571 877 877 } 878 878 879 add_shortcode('wc_wallet_show_balance', 'wc_wallet_show_balance'); 880 881 function wc_wallet_show_balance(){ 882 if( is_user_logged_in() ){ 883 echo "Available Credits: ".wc_price(get_user_meta( get_current_user_id(), "wc_wallet", true )); 884 }else{ 885 echo "You need to login to see your credits"; 886 } 887 } 888 879 889 } 880 890 ?> -
wc-wallet/trunk/readme.txt
r1401564 r1401571 26 26 * Send Cancel Order Request and let the admin refund the amount as Credits. 27 27 * Credits restrictions for users. 28 * To show users their balance, use `[wc_wallet_show_balance]` shortcode. 28 29 29 30 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.