Plugin Directory

Changeset 1401571


Ignore:
Timestamp:
04/21/2016 08:10:06 PM (10 years ago)
Author:
hemnathmouli
Message:

version 1.0.1 update

Location:
wc-wallet
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • wc-wallet/tags/1.0.1/includes/functions.php

    r1401564 r1401571  
    877877}
    878878
     879add_shortcode('wc_wallet_show_balance', 'wc_wallet_show_balance');
     880
     881function 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
    879889}
    880890?>
  • wc-wallet/tags/1.0.1/readme.txt

    r1401564 r1401571  
    2626* Send Cancel Order Request and let the admin refund the amount as Credits.
    2727* Credits restrictions for users.
     28* To show users their balance, use `[wc_wallet_show_balance]` shortcode.
    2829
    2930== Installation ==
  • wc-wallet/trunk/includes/functions.php

    r1401564 r1401571  
    877877}
    878878
     879add_shortcode('wc_wallet_show_balance', 'wc_wallet_show_balance');
     880
     881function 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
    879889}
    880890?>
  • wc-wallet/trunk/readme.txt

    r1401564 r1401571  
    2626* Send Cancel Order Request and let the admin refund the amount as Credits.
    2727* Credits restrictions for users.
     28* To show users their balance, use `[wc_wallet_show_balance]` shortcode.
    2829
    2930== Installation ==
Note: See TracChangeset for help on using the changeset viewer.